Benny Tsai benny.t...@gmail.com writes:
There's while in clojure.core; would that work?
That would be cheating:
--8---cut here---start-8---
user (macroexpand '(while (foo) (bar)))
(loop* [] (clojure.core/when (foo) (bar) (recur)))
--8---cut
Thanks for sharing your blog post. Is there an Anti-If alternative to
loop/recur in a situation where you have to poll for a condition to be
true? (Seems to me that this necessitates some kind of conditional
statement)
On Thursday, May 24, 2012 5:57:47 AM UTC-4, Dominikus wrote:
Three weeks
There's while in clojure.core; would that work?
On Tuesday, May 29, 2012 8:13:24 AM UTC-7, Andrew wrote:
Thanks for sharing your blog post. Is there an Anti-If alternative to
loop/recur in a situation where you have to poll for a condition to be
true? (Seems to me that this necessitates
Hi Dominikus,
and thanks for sharing your valuable thought.
I did not read the antiifcampaign, but I remember very well the number of
ifs code lines
were present in java window toolkit (1995), just because they did not add
NullLayout class to polymorphically manage the absence of a layout
Three weeks ago I stumbled across the Anti-If Campaign (
http://www.antiifcampaign.com/).
An instant later I realized that one could easily re-implement if in
Clojure with maps. More interestingly, polymorphic functions can be easily
motivated with the help of maps. And this naturally leads to
After seeing [1] from Rich Hickey I wondered what he means with
replace if statements with polymorphic functions? Why and how
exactly should I do it? Your blogpost opened my eyes. Thanks a lot
Dominikus
Bost
[1] http://www.infoq.com/presentations/Simple-Made-Easy
--
You received this message
I really enjoyed that, thanks Dominikus :)
Ambrose
On Thu, May 24, 2012 at 5:57 PM, Dominikus dominikus.herzb...@gmail.comwrote:
Three weeks ago I stumbled across the Anti-If Campaign (
http://www.antiifcampaign.com/).
An instant later I realized that one could easily re-implement if in
hi!
On Thu, May 24, 2012 at 4:42 AM, Rostislav Svoboda
rostislav.svob...@gmail.com wrote:
After seeing [1] from Rich Hickey I wondered what he means with
replace if statements with polymorphic functions? Why and how
exactly should I do it? Your blogpost opened my eyes. Thanks a lot
Dominikus
Whatever model I choose to understand a piece (big or small at your
preferences) of the world, when I need more than few conceptual if, there
is something wrong in my understanding of that piece. I never
forgot Copernicus vs Ptolemy. But its not without mental efforts to find
the right
On Thu, May 24, 2012 at 2:41 PM, Mimmo Cosenza mimmo.cose...@gmail.com wrote:
forgot Copernicus vs Ptolemy. But its not without mental efforts to find the
right earth/sun to swap. I'll read your post in few minutes
yeah, they were all still wrong about mercury, no? :-)
--
You received
10 matches
Mail list logo