News for hackers. Stuff that matters.
Re:Modern PHP features explained – PHP 8.0 and 8.1 by Supermancho on Thursday October 27, 2022 @01:10PM (#33360725)
Re: Constructor property promotion

Class Access Modifiers (mixin selectors) are now potentially/usually going to be in 2 places. The object level and the constructor level. Property promotion will land somewhere in PHP-FIG eventually as recommended or not, and then you'll have to know it regardless of how often you use it. Ironically, PHP is feeling (and looking!) more and more like Perl.

Java has inspired auto getter/setter support in the IDE (even PHP IDEs), so why does this need to be a feature instead of an IDE extension to type it for you at the class level? To be fair, @AllArgsConstructor is a thing and it's been great for Java, which is meaningfully different and more succinct. I guess I can give a minimal kudos for not making it an annotation. shrug

Re: Union Types, Unpacking, Enums, et al aren't bad, although I have smaller issues with some of it. What I think doesn't matter that much as I don't think I'll ever go back to PHP, despite decades of experience with it.

Re:Modern PHP features explained – PHP 8.0 and 8.1 by Supermancho on Thursday October 27, 2022 @04:24PM (#33363526)
Development is primarily about automation, so I expect more and more tooling support to aid in working with more complex applications that have grown to absurd sizes (in terms of LoC). I expect, long after I'm dead, all languages will be tightly bound into IDEs, bringing us full circle (LISP, erlang, et al).
Re:Modern PHP features explained – PHP 8.0 and 8.1 by 8n4vidtmkvmk on Thursday October 27, 2022 @10:02PM (#33366660)
i don't think so. we're moving towards language servers, so as long as your ide speaks langserver, you'll have a few choices