Overall, it's a lot of effort (not the patch but the tests) and there's a significant potential to cripple future additions more in line with the current syntax.
Infix notation to be safe implies the use of a lot more delimiters to avoid ambiguities. Clojure is not going at all in this direction. It feels like these pre-school games were you need to fit pieces of different shapes in holes. More or less trying to make a circle fit into a triangle shaped hole... Looks a lot simpler to work on the mental restriction.. I have no idea why this postfix thing has such a huge impact on people. It looks to me more like some form of conservatism than anything else. Brains are flexible and can remodel themselves even in elderly people :) Luc > On 26/12/2011, at 6:23 PM, Louis Yu Lu wrote: > > > My proposition is enhance Clojure to accept both (f x) and f(x) > > Fortunately, I don't see that happening, for several reasons (many of which > have been mentioned). It adds complexity, causes confusion and inconsistent > coding styles and it will break everything that parses s-expressions (data = > code after all). Imagine trying to read lisp code that is a mix-n-match of > the following: > > ;; the following would be equivalent: > (g (f a b)) > (g f(a b)) > g((f a b)) > g(f(a b)) > > ;; the following would be equivalent: > ((f a) b) > (f(a) b) > (f a)(b) > f(a)(b) > > FOUR different ways of expressing ((f a) b). How is that helping those trying > to learn Clojure? > > Also, note that (g f(a b)) and (g f (a b)) have very different semantics, > even though the only difference is the added whitespace between two tokens. > > If you stick with the elegant simplicity of s-expressions for a few more > weeks, I promise that you won't even notice it anymore and you'll find that > it's perfectly readable. > > cheers, > gert > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en