Sid,
Welcome to the club. I haven't seen this much traffic in months.
You get ! .vs. every. The greedy analogy is perfect.
A friend recently pointed me at a C# (I think) construct called yield returns
as a comparable for generators (and co-routines).
Next/soon you may want to look at co-expressions.
Yes it's getting colder here in Canada. I wonder how manyCanuckUniconists
there are?
BTW. In a related note there was a project called Godiva about an enhanced
Java that had some very *iconish things. I don't know how far it got but the
paper I read on it about how Java didn't go far enough was very interesting.
Cheers,
David
from T.O.
________________________________
From: Sidney Reilley II <[email protected]>
To: [email protected]
Sent: Thu, October 22, 2009 11:02:59 PM
Subject: Re: [Unicon-group] "to" generator
Andrew Clarke wrote:
>> Barry Schwartz wrote:
>>
>> I got it! The generator (1 to 2) first returns 1, which becomes the
>> L.H.S of the "to 3" generator.
>>
> Bingo! The correct word here, however, is not "returns" but "suspends"
> because
I see! I was just reading about explicitly using "suspend
<some_expr>". I guess that in the case of my snippet, the "suspend" is
implied - to someone who understands what's going on.
> the (1 to 2) is still alive. [If you enjoy imagining how languages might be
> implemented on real machines, thinking about how to suspend can give you a
> real headache until you find out how it's done]
Right now, I'd rather enjoy imagining learning (Un)icon on a laptop,
parked on a warm beach somewhere South, and not in this cold-ass Canada ;)
--
Sid
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group