Re:Clojure – Fascinated, Disappointed, Astonished (2016)
by Sharlin on Friday January 24, 2020 @03:48PM
(#22142299)
Because `f (a b)` already means something else: two separate expressions that just happen to be adjacent.
[ Parent
| on HN ]
Re:Clojure – Fascinated, Disappointed, Astonished (2016)
by pdonis on Friday January 24, 2020 @03:58PM
(#22142388)
> `f (a b)` already means something else
If it's inside a list already, yes. But if it's just an expression all by itself, it's not even well-formed in LISP, since it's not a list.
Re:Clojure – Fascinated, Disappointed, Astonished (2016)
by klez on Saturday January 25, 2020 @04:11AM
(#22145495)
Depending on what `a` is, it certainly could mean something. Those are two expressions, where `f` by itself does nothing and, if `a` is a function, it will be applied to `b`. If `a` is a macro it will be transformed, and then depends on what it will be transformed into. If `a` is neither, then it's an error.