Sweet.js - Sweeten your Javascript (by Mozilla)
1–10 of 30 posts
Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#2Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#3Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#4For good or bad, it appears to be limited, with macros you probably can't, for example, make curly braces optional.
Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#5Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#6If I recall correctly, there might be a macro system in the ECMAScript 6 specification (which should be implemented natively by Javascript engines eventually).
Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#7Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#8If I recall correctly, there might be a macro system in the ECMAScript 6 specification (which should be implemented natively by Javascript engines eventually).
That not correct -- no new features are being added to ES6 now. Macros are possible for subsequent versions, though.
Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#9I recognise that such a thing would run completely counter to Python's 'no magic' cultural values, but structural search-and-replace seems such an intoxicatingly powerful tool, I'd like to at least have the option to abuse it.
Re: Sweet.js - Sweeten your Javascript (by Mozilla)
#10Seems like mozilla is trying to answer TypeScript. Which is really good.