3 ms·
> what sort of crazy hack would that require? Exactly the same as are required for Coffeescript, which is to write a Tilt that uses ExecJS. https://github.com
by ajanuary 13y ago
> what sort of crazy hack would that require?
Exactly the same as are required for Coffeescript, which is to write a Tilt that uses ExecJS.
https://github.com/magnetised/sweetjs https://github.com/magnetised/sweetjs is a ruby gem for interfacing with sweetjs using ExecJS. The Tilt wrapper would be about 50 lines of code.
This is exactly the sort of thing the asset pipeline is designed to do, and the ruby community has been figuring out how to take advantage of the tooling the javascript community is writing for a while now.
- alttab 13y agoI don't like coffee script for the same reason - it adds extra processing steps and runs different code than I write in the browser. While it cleans things up, I personally haven't worked on a Javascript project that would benefit from what I see as only incremental improvements to "cruft," which can be just as easily implemented with functions and continuations/monads.