Re: Nested functions on #() reader

2012-09-17 Thread Alan Malloy
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, Septem

Re: Nested functions on #() reader

2012-09-17 Thread DAemon
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

Re: Nested functions on #() reader

2012-09-17 Thread Ben Smith-Mannschott
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 messag

Re: Nested functions on #() reader

2012-09-17 Thread Moritz Ulrich
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

Nested functions on #() reader

2012-09-16 Thread vhsmaia
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