Zend certified PHP/Magento developer

Do we really need named parameters?

Yes, the title is a bit clickbaity, but lately I’ve been seeing talks and RFCs on the matter, so I started wondering about this.

I feel like named parameters were a thing when everyone and their neighbor was moving to Rails, so Ruby having this feature kind of made everyone ask for it. Now… I really don’t think it’s such a big deal? Perhaps because I feel like having too many arguments is kind of a smell, and IDEs basically remove the guessing anyway, but in the last few years I’ve never actually thought “having named parameters would make a difference here”.

Perhaps I’m part of a minority, but I’ve been wondering whether people want them because it’s cool to have them or because they actually need the feature.

submitted by /u/dborsatto
[link] [comments]