News for hackers. Stuff that matters.
Re:Multiline strings in JavaScript by dsego on Saturday July 12, 2014 @07:48AM (#8024322)
Why not a pre-processor?
Re:Multiline strings in JavaScript by mofle on Saturday July 12, 2014 @07:57AM (#8024342)
In Node.js you don't want a compile step. In the browser however that would probably be a better solution indeed.
Re:Multiline strings in JavaScript by aikah on Saturday July 12, 2014 @09:38AM (#8024505)
no compile step needed in nodejs. Most third party languages can hack require so using the transpiled language requires no manual compilation.
Re:Multiline strings in JavaScript by alextgordon on Saturday July 12, 2014 @08:04AM (#8024353)
Why don't you want a compile step?
Re:Multiline strings in JavaScript by mofle on Saturday July 12, 2014 @08:16AM (#8024375)
Because a compile step is annoying when it's not strictly needed. In the browser you usually have some kind of build system for concatenation and minifying anyways.
Re:Multiline strings in JavaScript by knubie on Saturday July 12, 2014 @08:46AM (#8024411)
With coffeescript, at least, there is no extra compile step from the user's point of view. You can run `coffee myapp.coffee` in the same way you would run `node myapp.js`