Re: Nested functions on #() reader
Indeed, there's no need for anything to be a reader macro, except concision. You can write this as an ordinary macro, eg, (crazy-fn %a %%b %%%c). If you try that and find it's awesome, share it with others. If it's universally loved, perhaps someday it could be a reader macro. On Monday, September 17, 2012 1:59:56 AM UTC-7, DAemon wrote: > > So you would introduce all of the functions first, then insert the body > into the inside? Major issue that I can see is that it's very powerful and > very useful only in very specific circumstances, but isn't extensible at > all. Looks cool, though. Maybe you could write a macro that does something > like this? > > - DAemon > > On Sun, Sep 16, 2012 at 2:16 PM, vhsmaia >wrote: > >> Hello. I'm new here, so, not sure if those were already posted. But why >> is this not used? An example would be: >> #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b c))) >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@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+u...@googlegroups.com >> 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 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
Re: Nested functions on #() reader
So you would introduce all of the functions first, then insert the body into the inside? Major issue that I can see is that it's very powerful and very useful only in very specific circumstances, but isn't extensible at all. Looks cool, though. Maybe you could write a macro that does something like this? - DAemon On Sun, Sep 16, 2012 at 2:16 PM, vhsmaia wrote: > Hello. I'm new here, so, not sure if those were already posted. But why is > this not used? An example would be: > #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b c))) > > -- > 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 -- 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
Re: Nested functions on #() reader
On Sun, Sep 16, 2012 at 6:16 AM, vhsmaia wrote: > Hello. I'm new here, so, not sure if those were already posted. But why is > this not used? An example would be: > #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b c))) My eyes! The goggles to nothing! -- 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
Re: Nested functions on #() reader
I think the most simple reason is that it's unreadable for humans. On Sun, Sep 16, 2012 at 6:16 AM, vhsmaia wrote: > Hello. I'm new here, so, not sure if those were already posted. But why is > this not used? An example would be: > #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b c))) > > -- > 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 -- 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
Nested functions on #() reader
Hello. I'm new here, so, not sure if those were already posted. But why is this not used? An example would be: #(%a %%b %%%c) would be the same as (fn [a] (fn [b] (fn [c] (a b c))) -- 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