On 08/09/16 22:56, Christoph M. Becker wrote: > And it can even work without autoboxing; just wrap the scalars in > objects manually.
And we come full circle. YES everybody can add their own user land wrappers to do this, but if code is built into the core to provide a standard to work with then we don't have everybody re-inventing the wheel. And there is no need to 'Add validation functions to filter module' simply because that code already exists in the right place ... wrapping the base variable. Some of the elements of proper variable validation have been squeezed in via the 'strict mode, and other soft type rules, where a simple expansion to a basic element will cover just about everything everybody is demanding? We don't need a strictly typed language but if strict rules can be added to the core validation functions then we have much better flexability to use them or not, and none of the debate of where 'strict mode=1' enables it. Just as a read_only rule gets rid of the need for yet another whole family of classes. -- 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