Skip to content

re: Don't return associative arrays! VIEW POST

re: Yes, but all this makes me wonder if we shouldn't have all adopted Java. It does almost everything in a better way, and for everything else, there'...

Regarding method signatures i think PHP is doing a good job. AFAIK you can pass a null to method in Java instead of an object. That is very weird and stupid imo. PHP throws a TypeError if the type doesn't match.

Don't make me count the warts on PHP. 😝 In the race to stupid, ugly and narrow applications, very few languages can beat PHP. 😬

True. With an important note that the param has to be explicitly defined as nullable.

code of conduct - report abuse