Derick Rethans <der...@php.net> wrote:
>Nothing shows that they are. In any example I saw, I don't even see any
>
>OO syntax/functionality. For me, "yield" is a core syntax *keyword*,
>and 
>hence: no exceptions.
>

I was unware PHP was a purist, non-OOP language. What is "OO syntax" anyway? 
Why can the core not use high-level language constructs too?

Yield is core syntax, but it produces a function returning a generator, which 
is an object, and since Iterators use Exceptions, it would be stupid for 
Generators, which *are* a class of Iterator, not to. 
-- 
Sent from my Android phone with K-9 Mail.
Andrew Faulds
http://ajf.me/

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

Reply via email to