Arc Forumnew | comments | leaders | submitlogin
1 point by Pauan 4945 days ago | link | parent

Oh yeah, and another neat thing: my compiler knows the difference between necessary and superfluous whitespace. By default it pretty-prints it, so the JavaScript looks nice. But you can use a mode that will minify it for you:

  (w/whitespace minify (tojs '(fn () (let a 50 a))))

  ->

  (function(){var a=50;return a;})
You can also manually tweak the indent level, line separator, etc. Not bad for a single day's work, eh?