4 ms·
> However, nesting is difficult to read when it becomes deep: the flow of execution moves right to left, rather than the left-to-right reading of normal code.
by geoffeg 5y ago
> However, nesting is difficult to read when it becomes deep: the flow of execution moves right to left, rather than the left-to-right reading of normal code.
Laughs in LISP.
- didibus 5y ago(-> "a b c d" .toUpperCase (.replace "A" "X") (.split " ") first) "X"
- jml7c5 5y agoIs there a name for this sort of construct/macro in lisp? I'm interested in seeing more examples of it, assuming it's common.
- Spivak 5y agoPersonally I do find lisp code terribly difficult to read because of the inside out nature of it. For tricky Lisp I used to use a tool that would generate control flow graphs for me to make it easier to grok.
- nine_k 5y agoLisp dialects used to have excellent threading macros, allowing for exactly the described linear style.
- dragonwriter 5y ago> Lisp dialects used to have excellent threading macros, Used to?
- nine_k 5y agoStill do, but used to, too!