Re:Numpy Clone in Common Lisp
by vnorilo on Tuesday May 14, 2019 @12:53AM
(#19906861)
I think the reason infix feels "nice" is that you can sometimes write dataflows from leafs to roots, whereas with prefix you work from the root up. But then you use a lisp threading macro which lets you do that consistently, with any set of functions/operators.
[ Parent
| on HN ]
Re:Numpy Clone in Common Lisp
by antepodius on Tuesday May 14, 2019 @08:47AM
(#19908929)
I find I can still go leaf-to root, at least eith my editor (vim with the slimv plugin)- You can press ,W to 'wrap' a lisp expression in another set of parentheses, which means for something like
(a + b) * (c + d)
You can write the '(+ a b)' first, then wrap it in a (* [...])