3 ms·
PHP actually has quite a few features I like compared to other dynamic languages, although maybe that's a kind of Stockholm Syndrome. Typehints alone make PHP p
by spdionis 11y ago
PHP actually has quite a few features I like compared to other dynamic languages, although maybe that's a kind of Stockholm Syndrome. Typehints alone make PHP preferable to python and ruby for me. Only quirk is to remember to always use ===.
One thing I love about PHP: if a function/method parameter is typehinted to a class then I cannot pass null into that parameter unless explicitly allowed to. Much better than C#/Java.
In PHP 7 with return types and primitive typehints programming PHP will actually be quite pleasant.
Every experienced PHP developer knows that most of the inconsistencies and quirks are only worthy of trivia lists and barely ever create real bugs.