News for hackers. Stuff that matters.
Re:Clojure – Fascinated, Disappointed, Astonished (2016) by abjKT26nO8 on Friday January 24, 2020 @04:18PM (#22142560)
If you wrote function applications as `f(foo bar)`, then spaces between identifiers and parentheses would be semantically-significant. Putting a space between `f` and the first parenthesis in the aforementioned expression would produce an invalid expression. Similarly, doing the same with `g(baz f(foo bar))` would result in `g(baz f (foo bar))` which is an application of g to 3 arguments, second of which is the procedure bound to f, whereas in the original expression it was an application of g to 2 arguments, second of which was the result of application of f to two arguments. I don't think such sensitivity to whitespace would result in comfortable code editing when you move code around.

There are no comments on this comment yet.