3 ms·
It buys you a proper modern language that even the creator of Javascript praises. It prevents bugs because it's a better language than Javascript in many ways.
by uranian 10y ago
It buys you a proper modern language that even the creator of Javascript praises. It prevents bugs because it's a better language than Javascript in many ways. Just write a few projects in it and you'll see for yourself.
Functions in Coffeescript:
->
=>
Functions in Javascript:
var myFunc = function(){};
function myFunc(){}
var myFunc = () => {};
in objects:
myFunc: function(){}
in classes:
myFunc(){}
Inconsistency in code is a recipe for bugs.