Splicing inside declaration?

View: New views
1 Messages — Rating Filter:   Alert me  

Splicing inside declaration?

by pweaver :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems like there is no support for something like the following, in which a splice occurs within a quasi-quoted declaration:

       foo x = [d| $x = 1 |]

Is there planned support for this?

I really want to be able to use this to generate code, and it is so much easier than manually working with the abstract syntax (Exp, Dec, etc...).

Thanks!

- Phil
LightInTheBox - Buy quality products at wholesale price