Re:Thinking in Clojure for Java Programmers
by jesusabdullah on Friday December 17, 2010 @04:59PM
(#2018011)
prefix, not postfix:
I was also skeptical regarding the readability of prefix notation vs. postfix for large problems. However, when I tried it, I actually found it easier to handle. For example, here's a very obnoxious heat transfer correlation that I typed in common lisp:
Versus, in infix it's more like:
Now, I admit that my sense of whitespace is pretty inconsistent, but still: Here is a real case of a very annoyingly nested expression in both infix and prefix notation. While I think it would take quite a while for anyone to sort out what the Hell is going on for either of these regardless of experience (versus, say, rendered LaTeX), I would put forth the suggestion that the common lisp is actually easier to understand.
[ Parent
| on HN ]
There are no comments on this comment yet.