Hacker News new | ask | show | jobs
by fg137 15 hours ago
Hmm... many other "modern" languages can do the same thing.
1 comments

The only other languages with similar features I know of would be F#, Elixir, probably OCaml. I wouldn't call that "many". Also, it's besides the point I was making; PHP is a capable, JIT-compiled scripting language by now, including a fully optional, gradual, yet runtime-enforced type system; fibers/green threads, generators, streams, FFI, pluggable SAPIs, etc.; great performance, especially so with JIT and opcode caching enabled; and a lot more. On top of that, you get an extremely well-maintained ecosystem with a single, standard package manager that avoids many of the supply chain security issues of other ecosystems, several healthy application servers and widely used frameworks, ubiquitous tooling and integrations...

There's a lot to criticise about PHP, but also a lot to like.

You hanging on the syntax. Many programming languages provide functional primitives, which is what you're talking about. Yes, the |> operator is specific to some languages.