Re:Multiline strings in JavaScript
by dsego on Saturday July 12, 2014 @07:48AM
(#8024322)
Why not a pre-processor?
[ Parent
| on HN ]
In Node.js you don't want a compile step. In the browser however that would probably be a better solution indeed.
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?
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.