ki
ki copied to clipboard
lisp + mori, sweet.js
See if we can get away with AST manipulation (it's now used for :keywords and js.object.property.access) by using custom pattern classes as recently introduced in sweet.js: http://sweetjs.org/doc/main/sweet.html#custom-pattern-classes-experimental
We could consider relying on the AST for catching the most frequent macroexpand-time errors and emit proper errors with line numbers etc (as in source maps).
I haven't looked into how exactly you're relying on mori but just a thought, if you're only after the immutability features then it might be worth considering ancient-oak? https://github.com/brainshave/ancient-oak Cheers
Make reading keywords and object property notation more robust by relying on ranges (as in react.hiccup).