3 ms·
> where exactly is the line Not that I have an aswer to that, but I have the impression Coffeescript was designed specifically to compile 1:1 to matching js.
by geon 15y ago
> where exactly is the line
Not that I have an aswer to that, but I have the impression Coffeescript was designed specifically to compile 1:1 to matching js.
A lot of the distinction seems to depend on the local culture of the language. I've seen a lot of lispers talking about their new "language", where they add some minor feature to scheme.
- cubicle67 15y ago...Coffeescript was designed specifically to compile 1:1 to matching js possibly initially, but there's a lot of constructs in coffeescript that aren't in js eg existential operator solipsism = true if mind? and not world? compiles to var solipsism; if ((typeof mind !== "undefined" && mind !== null) && !(typeof world !== "undefined" && world !== null)) { solipsism = true; } see also splats http://jashkenas.github.com/coffee-script/#splats http://jashkenas.github.com/coffee-script/#splats, function binding and comprehensions over collections eg eat food for food in ['toast', 'cheese', 'wine']