Closed nikic closed 5 years ago
Voting is underway and the RFC is very likely to be accepted, so should move forward here.
Done in https://github.com/nikic/iter/commit/2d0b6189ad35e223a0e87b82d6a30a02369c04a9. I think in PHP 7.4 you would just use an arrow function for most of what iter\func
provides though :)
It's likely that
fn
will become a reserved keyword due to https://wiki.php.net/rfc/arrow_functions_v2, soiter\fn
should be renamed toiter\func
for version 2.0.