jashkenas/coffee-script — Issue #1914: Time conversions
Author: DiogoDoreto
Created: 2011-12-06 13:15:43+00:00
State: open

Times are common in javascript codes and almost always are used in milliseconds. What do you think of coffeescript compiling something like:

setTimeout myfunc, 5s
setInterval test, 2min

into this:

setTimeout(myfunc, 5000);
setInterval(test, 120000);

I think this is better to write and to understand.

Thanks!