3 ms·
>I wonder why PHP includes more and more type checks and visibility features Because they are easy to implement (function type hints, typed properties) and the
by greatdipper 10y ago
>I wonder why PHP includes more and more type checks and visibility features
Because they are easy to implement (function type hints, typed properties) and the php community have a collective, insatiable, perpetual hardon for features that are supposed to enhance correctness..
So the core devs are eager to propose these kinds of features. And the community is eager to accepts them without much thought..
To see how child like this mentality towards these type of features, see this comment, where a Php expert makes a big deal regarding when a user omitted mentioning the type of a value....
https://www.reddit.com/r/PHP/comments/4k2htl/ive_just_given_5_interviews_to_senior_developers/d3buk6g https://www.reddit.com/r/PHP/comments/4k2htl/ive_just_given_...