Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess you'll be upset then that I, personally, was for it using Exceptions, because Generators are Iterators.


It's a sensible choice and i understand the reason for it being this way. It does seem like it's exposing an implementation detail, though, and out of the rest of the core language syntax, nothing else throws an exception.

I'm happy to see the feature, but this is one of those quirks that, in another five years, will end up in the next "A Fractal Of Bad Design" blog post.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: