nikic / iter

Iteration primitives using generators
Other
1.12k stars 76 forks source link

Rename iter\fn to iter\func #79

Closed nikic closed 5 years ago

nikic commented 5 years ago

It's likely that fn will become a reserved keyword due to https://wiki.php.net/rfc/arrow_functions_v2, so iter\fn should be renamed to iter\func for version 2.0.

nikic commented 5 years ago

Voting is underway and the RFC is very likely to be accepted, so should move forward here.

nikic commented 5 years ago

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 :)