DEV Community

Discussion on: PHP 8.1: more on new in initializers

Collapse
 
andersbjorkland profile image
Anders Björkland

I joined PHP when 7.3 was the "hot stuff", but coded more frequent with the release of 7.4. Seeing all these improvements over the last 2 years has really spoiled me and I'm a happy web developer now. My favourite new feature is named arguments. I think they improve code readability while giving a nice shortcut to that 4th argument that you don't want to initialize with a default value. I haven't used new in initializes yet, but it's something I'll keep in mind now. Thanks for this neat article!

Collapse
 
rafaelbernard profile image
Rafael Bernard Araújo

Thanks, Anders. I am very glad that you liked the article.

named arguments are another real great feature that PHP is providing. They keep coming and coming. Enums, first class callables, read-only properties are other examples of features with great impact at day-to-day activities.