3 ms·
Looks great. At the very least it needs a built-in function shortcut; people are already used to ES6/Coffeescript shortcuts. Yes, I understand I can probably ma
by Kjeldahl 11y ago
Looks great. At the very least it needs a built-in function shortcut; people are already used to ES6/Coffeescript shortcuts. Yes, I understand I can probably macro it myself, but that doesn't mean it's not needed in core. Anyway, looks like a great piece of work!
- an_ko 11y agoIf you mean shortcuts like argument-splats and implicit return-statements, https://github.com/anko/eslisp-fancy-function https://github.com/anko/eslisp-fancy-function is on npm. All you need is to npm install it and do (macro function (require "eslisp-fancy-function")) If you want it in all files, it's safe to cat that onto the start of each as a build step. I do see your point though—it's a very common thing for people to want to use. I'm adhering strictly to UNIX design priciples for now because I'm afraid of featuritis, but perhaps that will change as the project matures. I'm playing with the idea of having a separate convenience "getting started" package called "eslisp-coffee" or something, which acts like the core eslisp compiler but with a certain set of macros attached by default. What do you think?
- Kjeldahl 11y agoeslisp-fancy-function looks great. One standard package with a lot of sensible defaults - based on learnings from ES6, Coffeescript etc - sounds like a great idea. Again, great work!