Re:The Roots of Lisp (2001)
by lkschubert8 on Thursday January 16, 2020 @07:45AM
(#22063953)
I think they are referring to the nested nature of lisp function calls.
I think that is really just personal preference/what you were taught as opposed to good or bad language design. But it really doesn't matter as one of the big benefits of lisp is it's ability to be metaprogrammed. That same example could be rewritten in clojure as
thanks to macros and doesn't suffer from the right->left reading.
[ Parent
| on HN ]
> I think they are referring to the nested nature of lisp function calls. (second-fn (first-fn val))
How's this different than:
secondFn(firstFn(val))
other than the placement of parenthesis, the two cases read exactly the same, left to right.I'm on the side of lisp here, but in OOP you'd usually write something like
val.firstFn().secondFn()
Re:The Roots of Lisp (2001)
by lkschubert8 on Thursday January 16, 2020 @08:35AM
(#22064338)
I've seen a lot of breaking that out into the following in imperative languages.
var intermediaryVal = firstFn(val);
var result = secondFn(intermediaryVal);