News for hackers. Stuff that matters.
Re:Sweet.js – Hygienic Macros for JavaScript by jaywunder on Tuesday July 04, 2017 @02:53PM (#14697593)
The last thing the JS community needs is macros IMO. From what I've seen in other languages, macros are difficult to maintain and document, and they add syntax constructs to languages that aren't supported by code highlighters. The difference between this and babel, is documentation. Babel is working off of a specification of how the language should work, whereas I doubt someone will document their macros as well as TC39 does the JS syntax
Re:Sweet.js – Hygienic Macros for JavaScript by flavio81 on Tuesday July 04, 2017 @03:09PM (#14697671)
Every language benefits from macros, and certainly JS.