> The use of the commas helped it to click for me a long time ago And I don't think you should be ashamed to admit that.
The threading macros are not intuitive, and the comma trick *is* useful to help in learning them. Rich said: > I think that is a terrible practice and should be left out of the book. Really, "terrible"? Fogus and I both found it helpful for learning the threading macros. tJoC doesn't recommend that it be used in practice, but its advice as a helpful learning tool, or "training wheels" if you will, is not only prudent, but shows that people find the placeholder syntax of --> to be intuitive. - Greg On Jul 6, 2010, at 8:13 PM, Fogus wrote: >> Once they read it, I think it becomes intuitive. Again, even The Joy >> of Clojure points out that people use commas with -> and ->> to >> indicate the location of the parameter. This is no different, except it > > Well "The Joy of Clojure" is clearly wrong! Actually, the latest > version says "You can use the placement of commas as visual markers > for the stitch point" and a footnote that says "Since commas are > considered whitespace. The use here is instructive and not meant as > idiomatic." > > The use of the commas helped it to click for me a long time ago, but > it's use has not persisted beyond the first few times using it. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
