Currently an awesome RFC to introduce Named Parameters to PHP is in the voting phase. As I voted against this RFC and some people asked me about my reasoning I thought I share it here.
For me this RFC is added syntactic sugar that doesn’t solve a problem but allows for a more lazy programming style. But it introduces a lot of BC break potential by suddenly adding variable names to a public API and by introducing runtime errors due to variable naming.
— Andreas Heigl (@heiglandreas) July 10, 2020
After this tweet I had some interesting conversations on and off twitter that made me think about my take on named parameters back and forth.
And as much as I like the idea of named parameters I still see one major issue in the currently proposed implementation: Changing Parameter names.