Hi!

> Speaking of parse errors, I'm having trouble parsing this line.  I *think*
> you're saying that generators are just complex things and that's the way it
> should be.  I... guess I agree, though I have a lower opinion on the
> complexity of generators.  Seem like a fairly straightforward concept to
> me.  They are certainly proven concepts.

They're not that complex. They are basically a syntax sugar around
iterators, and we already have tons of iterators which are widely used.
Actually, it's easier than iterator since you have to implement just one
method, not five of them.

Of course, it's not a beginner's feature - but we have now many features
which require some understanding of the language - like magics,
anonymous functions, etc. It doesn't by itself make it inappropriate. If
we can make it work in a way that won't be confusing and illogical for
people knowing how iterators work, then I think it's OK.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to