Macros
#449
Replies: 1 comment
-
The most elegant ways to extend the language for new features that I know is the Forth language mechanisms. I would like something like that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that this would be a huge undertaking, but I think having macros in Civet would make the language really incredible. Not only that, but it would also be a great selling point for the language as it would add a new feature that most compile-to-js languages don't have.
When it comes to design, I immediately think of the unmaintained Sweet.js compiler. There currently exists nothing like it, and having something like it in the language itself would be amazing. Of course, the macro system could be completely different; I just love the raw power Sweet.js gives you. Here's an idea:
This is just something to think about; I'm not sure how feasible it would be to actually implement. I've just always wanted a macro system in some form of JavaScript.
Beta Was this translation helpful? Give feedback.
All reactions