Re:Named arguments are coming in PHP 8
by SAI_Peregrinus on Monday July 27, 2020 @09:38AM
(#23964942)
Aah, so then you use the Builder Pattern! Instead of one constructor taking N arguments, have a constructor that takes no arguments and N function calls to initialize the constructed values. It's cleaner because it's a named pattern! /s
[ Parent
| on HN ]
There are no comments on this comment yet.