Closed vendethiel closed 8 years ago
probably this
macro ~> {
rule {} => { function }
}
could do the job.
@yuchi yes, the macro itself is really simple. The problem is macro modules can't import other macro modules currently, so you'd have to put that in any file that wants to use it. You might be able to do it manually using the low level API for loading macro sources. There's an ongoing PR for ES6 module support in sweet.js that solves this problem.
Something like
~>
? That'd be likefunction { }
: