4

It's really frustrating, how named params have been suggested since php 5.6 but never since implemented, it's a thing that I just keep missing from .net and other languages, that have had it for more than a decade now.

https://wiki.php.net/rfc/...
https://philsturgeon.uk/php/2013/...

Comments
  • 1
    it would be hard to implement that, because the language needs a complete cleanup.
  • 0
    @stop yeah, probably, though as seen with php 5 to 7 it's possible to drop old trash
  • 0
    @Bitwise see the links 😉
  • 0
    @Bitwise

    It's vital feature imho, makes code much more readable and flexible in terms of non-forced arguments positions, instead of having just values and having to check on the function signature to know the order
  • 0
    @Bitwise Have bookmarked the book for later read, thanks! though I can't see how func_get_args ever introduces any readable code, if it's not used in its actual rare use cases.
  • 1
    "The implementation that accompanies this proposal is not complete yet. As this is a very complicated feature I do not wish to spend time finishing it without knowing that we actually want this feature."

    https://wiki.php.net/rfc/...
    Well...
Add Comment