Silly question time again ...

Currently I have an array of variables and the docblock annotation tells
me just what each element is intended to be. I process the variables on
that basis and while it may be helpful to have some higher level of
'restraint', I have a working flexible system. As a variable is
processed it is constrained by the appropriate rules. If PHP adds 'Type
Hints' they will only apply to where I am passing an array variable, and
the type hint adds additional processing to that which I already
maintain myself. How will that improve performance?

Add to this equation that the type and constraints of a variable may
well vary from one record set to another. It may well be that a fixed
set of types can be defined, but these are not the types currently being
defined and would include date types in parallel with a group of numeric
types.

Passing 'strict' types in some cases just does not compute in my book,
and even 'coercive' types only addresses a subset of the types needed so
that it adds another layer of 'checking' over what we already have in
much of the existing user code base. People keep going on about
different rule sets but this just adds another set of 'rules' rather
than a single solution.

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