After working for several years in a large clojure  code-base, and having
been bitten by laziness a few times, I think I am still a fan of "lazy by
default".

I have not been bitten by issues related to agents and laziness.  Mostly
it's resources going out of scope because I was using a dynamic binding.
The other gotcha is when collecting metrics and timing data.

I find it easier to write good abstractions around my data when I don't
have to worry about the "cost" of doing work that is not needed.  If you
are writing "accessors" than this may not be so apparent, but when you are
just using maps for your data, the default laziness means I an define a
whole map at once, and only pay for the parts I use.  With the very large
data structures we deal with, that's essential.


On Fri, Aug 14, 2015 at 12:56 PM, John Gabriele <jmg3...@gmail.com> wrote:

> On Thursday, August 13, 2015 at 1:51:32 PM UTC-4, Sebastian Bensusan wrote:
>>
>>
>>
>> I never thought of laziness! It's a good point. Retroactively I might add
>> it to the Functional Style section :)
>>
>>
> I think of laziness as often going together with (possibly-) infinite
> lists.
>
>
>> Thanks for the feedback,
>>
>>
> You're welcome!
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to