|
|
|
|
|
by codesushi42
2591 days ago
|
|
Genuine question, because I do not know the answer. Does it support: Lexical scoping Coroutines Generators Decorators Generic type containers A functional API (e.g. something like Java 8 streams) An extensive selection of data structures (collections) included in the standard lib ? |
|
Yes.
> Coroutines
No.
> Generators
Yes.
> Decorators
No.
> Generic type containers
In progress. But also PHP has dynamic/weak typing and static/strong typing so this isn't strictly necessary.
> A functional API (e.g. something like Java 8 streams)
Available as a 3rd party library.
> An extensive selection of data structures (collections) included in the standard lib
https://www.php.net/manual/en/book.spl.php