sweet-core icon indicating copy to clipboard operation
sweet-core copied to clipboard

Add support for expression vs statement position macros

Open natefaubion opened this issue 10 years ago • 1 comments

On a few occasions I would have liked to expand to different things when used in a statement position versus an expressions position. One simple use case is macros that expand to expressions but require intermediate bindings. Right now we just have to wrap everything in an IIFE, but that has drawbacks. it would be great if we could drop it if we knew it wasn't necessary (statement position).

natefaubion avatar May 23 '14 00:05 natefaubion

:thumbsup: would love this.

jayphelps avatar May 24 '14 07:05 jayphelps