Stas Malyshev wrote:
Option lists are everywhere, if you look at any framework everybody does
it. Of course, now they do it with option arrays, and if we accept that
option arrays are good then we don't need varargs either. But I thought
the idea was that option arrays are not good enough actually.

Parameter hashes are what we have been converting everything TO because it was supposed to be the 'proper way to do it' a few years back. So when did they get kicked out again? Certainly passing a hash through a verify function before acting on it makes sense with all the code I'm using now ... the verify function fills in any default values and checks the rest of the past variables, and secondary objects create detail records. I'd hate to be doing this nowadays with lists of parameters. It just would not work.

--
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

Reply via email to