3 ms·
Your example arbitrarily indents and new-lines. If that's what's on the table, then nothing is really going to help you. if (x > 100) { console
by danneu 11y ago
Your example arbitrarily indents and new-lines. If that's what's on the table, then nothing is really going to help you.
if (x
> 100) { console
.log('hello') } else
{ console.log
('world')}
When it comes to if/else and if you indent with some sanity, then lisp is like Python: if the 'else' branch is too hard to spot or if you forget the context by the time you reach the 'else', then your 'if' branch is simply too many lines long. Or you should flip the condition so that the short branch comes first.
Meanwhile, I can't even write your lisp example as-is in any of the editors I tried it in.