4 ms·
I have similar issues with coffescript, specifically the pain of significant whitespace is noticable whenever I find myself recalling how to write a simple `set
by lucisferre 13y ago
I have similar issues with coffescript, specifically the pain of significant whitespace is noticable whenever I find myself recalling how to write a simple `setTimeout` (or any similarly structured function) calls correctly, which is pretty much every time I use one as I don't find it particularly natural or intuitive.
Personally, though I'm looking at Dart rather than ES6.
- ilaksh 13y agoThis is how I do setTimeout: delay = (ms, func) -> setTimeout func, ms So you can write it like this: delay 100, -> console.log "100 ms passed"
- lucisferre 13y agoThe problem is it isn't the only situation this comes up in, and the fact that this has to be done at all is a testament to the problems with adding significant whitespace to a language not completely designed for it.