Re:PHP in 2021
by Angius on Saturday April 17, 2021 @08:17AM
(#26843707)
Right now, PHP is only missing typed local variables. Class fields are typed, function arguments are typed, function returns are typed. And local variables can be typed for static analysis purposes with `/* @var $str string */` annotation.
I'd add generics to that list, but Go doesn't have them either, so not really a point for discussion.
I'd add generics to that list, but Go doesn't have them either, so not really a point for discussion.