Daniel Nugent
2/21/2006 7:00:00 AM
Hah! Awesome mental, I was going to be implementing something like
this for an Actor library that I'm going to start work on Real Soon
(tm). And, of course, you did it way better than I would have.
One question: How hard would it be to modify the way that exceptions
are handled to hold off raising the exception until the result was
requested? I'm thinking specifically of some non-deterministic
situations where you may request a value but never end up needing to
use it.
On 2/20/06, mental@rydia.net <mental@rydia.net> wrote:
> Quoting James Edward Gray II <james@grayproductions.net>:
>
> > > I ditched the lazy streams API for now. It just wasn't working
> > > out.
> >
> > Can you expand on what you mean by this? I'm working on a huge
> > article about infinite streams for my blog and lazy.rb 0.2 was a
> > big inspiration to me.
>
> Oh, mainly it was an aesthetic thing. It _worked_ fine.
>
> I'd been fighting with the streams API to make it more Ruby-esque
> and easier to use properly, but I finally punted on it to get this
> release out the door quickly.
>
> In retrospect, I probably should have just kept the 0.2 API for now.
> I definitely want something better for 1.0, though.
>
> -mental
>
>
--
-Dan Nugent