On Wed, Nov 18, 2009 at 06:06:52AM -0800, Sean Devlin wrote:
>Do you mean the bean fn?
>
>http://clojure.org/api#toc120

This does appear to be lazy, although only partially.  Things like
(keys mybean) invokes the beans, but I think that's more just a
consequence of how iterators work in Java/Clojure.

Nice to see that it doesn't make the calls until asked for.

>On Nov 18, 4:23 am, David Brown <[email protected]> wrote:
>> On Tue, Nov 17, 2009 at 03:24:46PM -0800, Richard Newman wrote:
>> >Baby, bathwater. Making a persistent map out of a Java map is
>> >expensive. Not everything that implements Map is concrete; e.g.,
>> >spending several seconds making a local persistent Clojure map out of
>> >a distributed hash table proxy, just to get a value, would cause
>> >programmers to drop down to Java to avoid this pointless restriction.
>> >Why bother?
>>
>> I wonder if there's a use for a lazy 'bean' call, then.  Lots of
>> things use bean "properties" to do things that can be quite expensive.
>>
>> David
>
>--
>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

Reply via email to