Why is it not named Smooth.coffee?
Why is it not named Smooth.coffee?
> The golden rule of CoffeeScript is: "It's just JavaScript".
And there is every possibility that it could get rewritten in JavaScript. Or it could be rewritten in something else that compiles to JS, if something comes along to which this task is well-suited. The implementation can change, and the name should remain appropriate. What will not certainly change, however, is the environment in which this is intended to be used.
Hope that makes sense.
It seems like saying something could be cross-compiled doesn't really mean it is in that other language, but again, people seem to think of CoffeeScript as different.
Also, sorry for forgetting, but thanks for making this! It looks pretty awesome.
Do you have any plans for extrapolation?
BTW. Yesterday I needed to mirror some sequence and I ended up using Math.sin()
In general, the mapping between CoffeeScript and JS is so trivial that it's hard to think of places where there could be a lack of control. Of course, if that were ever an issue, CoffeeScript lets you directly embed JS by surrounding it in backticks.
I also had a bad gut reaction to CoffeeScript initially, and I won't pretend it doesn't have drawbacks; the powerful, in-browser debugger that it desperately craves still hasn't yet been written, after all. But it really gets right what so many compile-to-javascript languages have gotten wrong in the past. At the very least, it is hands down the easiest way to sketch an idea for JavaScript. I just never end up feeling like I would gain anything significant by porting that sketch to native JS.