3 ms·
Code like if x + y == 8 { (println "we add up") } else { (println "wat?" ) } really seems to combine syntaxes in a super-confusing manner ... The "if" is
by unwind 10y ago
Code like
if x + y == 8 { (println "we add up") } else { (println "wat?" ) }
really seems to combine syntaxes in a super-confusing manner ... The "if" is not in an s-expression, but the println call is? And there are blocks denoted using C-style braces mixed in ... I think this would take a while to get used to. :)
- jaten 10y agoThe infix is optional, but I do find it nice for interaction.
- lacampbell 10y agoYou get used to real s-expressions very quickly. People have a big hangup about it bit if you have an open mind it becomes a non-issue.
- lacampbell 10y agoactually much nicer (and shorter) with a real s-expression: (println (if (== (+ x y) 8) "we add up" "wat"))