Robert Williams wrote:
PHPDoc doesn't support parameter blocks, which means that IDEs can't offer the same level of assistance with code-completion that they offer for both objects and straight parameters -- another huge downside.
PHPDoc's does 'not' not support parameter blocks ... you just document them properly in the first place. Switching these to formalised objects introduces another level of complexity that detracts from their use rather than enhancing it, but again that is more to do with maintaining BC. Something that has become a second class citizen nowadays?
Much of the work I've been wasting time on over the past years is re-factoring legacy code to make it E_STRICT compliant. Switching TO using arrays has been part of that exercise and was helpful in getting around the warnings raised to the original code. Much of the material I'm working with is arrays of data into and out of a database, so not naturally an 'object'?
OK adding 'default' or going on to finally force named parameters on us is not going to break anything but it's creating yet more new styles of coding when what we NEED is to simplify and get back to a style of working that we can agree on and start producing applications rather than reinventing the engine every year :(
Currently - as I've said many times - there is no 'style guide' to provide a best practice we can work to. PSR is probably the closest we have but even that is a clique of users with a particular agenda which is why it's not formally accepted by the general development team? Redoing everything again to conform with that would be another year or so's work for me :(
Coding used to be fun - now it's just a chore :( -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php