Re: Nightmares on type hints, annotations, and aop...
| From: | Lester Caine | Date: | Fri, 20 Feb 2015 08:47:13 +0000 |
| Subject: | Re: Nightmares on type hints, annotations, and aop... | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83279@lists.php.net to get a copy of this message | ||
On 20/02/15 05:49, Zeev Suraski wrote:
> Pardon me for saying so, but I don't think you're on to a huge scoop here.
> Scalar type hints - of all the kinds we've been talking about here, be them
> strict, weak or coercive - can be easily emulated with a couple of lines of
> code, we all know that. It's been known for years that strict hints are
> is_*() else error equivalent, that weak hints are (mostly) just casts, etc.
> Saying the class type hints can be emulated with is_a() calls wouldn't shock
> anybody either.
I think I may have realised just why *I* am having a problem with a lot
of this discussion ... I've used ADOdb from day one which already does
this ... *I* had not realised that core PHP did not bother with the
management of data types that ADOdb is layering on top ...
Hence my question yesterday which I will reword ... If PHP creates a new
variable what does it store by default?
--
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