Re:PHP compile time generics: yay or nay?
by PaulGaspardo on Sunday August 10, 2025 @08:53PM
(#44859794)
Incidentally if you do what they're proposing for PHP in Java (where you define a non-generic subclass of a generic type), the actual generic type parameters actually are in the bytecode, and depending on the static type you use to reference it, may or may not be enforced...
That prints out:
[ Parent
| on HN ]
There are no comments on this comment yet.