Re:Build command line apps using PHP 7
by SwellJoe on Sunday September 03, 2017 @06:00PM
(#15164179)
Ah, that explains it. I didn't know about that, but my first thought was, "Why the hell is every single thing wrapped in a class?" That'd be considered non-idiomatic in JS/Perl/Python/Ruby, I think. Maybe not Ruby; Rubyists like their classes.
Something that probably hurts the language here is the lack of autoloading for functions, whereas it exists for classes, so exposing bare functions is a runtime performance penalty (their containing files must be loaded on every request, if you use Composer), which results in a preference for putting everything in a class. :/