3 ms·
These articles tend to miss a new development in JavaScript: sweet.js (http://sweetjs.org/ http://sweetjs.org/), hygienic macros for JavaScript. It is essential
by jlongster 13y ago
These articles tend to miss a new development in JavaScript: sweet.js (http://sweetjs.org/ http://sweetjs.org/), hygienic macros for JavaScript. It is essentially scheme's syntax-case/rules completely for JS, and it's done really well.
- chc 13y agoSweet.js is really cool, but it's not really a new development in JavaScript per se. It's a preprocessor. You can't actually use it in a JavaScript program any more than you can use CoffeeScript in a JavaScript program — instead, you have to write a Sweet.js program and have it create your JavaScript for you. It's a great addition to the JavaScript ecosystem, though.
- juliangamble 13y agoWhat is fascinating in this space is using the Generators (macros) in ES6 (next version of Javascript) to achieve what is possible in Clojure. This project is a copy of Clojure's core.async written in ES6 - enabling the same goals: http://andreypopp.com/posts/2013-11-09-recreating-core-async-tutorial-with-es6-generators.html http://andreypopp.com/posts/2013-11-09-recreating-core-async... http://swannodette.github.io/2013/08/24/es6-generators-and-csp/ http://swannodette.github.io/2013/08/24/es6-generators-and-c...