News for hackers. Stuff that matters.
Re:What PHP 5.5 might look like by devgutt on Thursday July 12, 2012 @11:04AM (#4234837)
I can't say I like the solution for parameter skipping though... I disagree with the author -- many optional arguments is not a problem

IMO This is a problem and bad design, because instead of default arguments you can use properties for optional arguments.

Re:What PHP 5.5 might look like by smsm42 on Thursday July 12, 2012 @08:51PM (#4237665)
You can, but: some function already exist with existing APIs - especially in libraries and existing internal PHP functions - and currently there's no way to say "I want default for the second parameter, but non-default for the third", unless you copy-paste the default from the docs.
Re:What PHP 5.5 might look like by swivelmaster on Thursday July 12, 2012 @06:33PM (#4237204)
Or encapsulate excess arguments in objects that represent the data that needs to be moved around, if possible.