Re: Re: Improving PHP's type system

From: Date: Thu, 14 Apr 2016 19:59:27 +0000
Subject: Re: Re: Improving PHP's type system
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-92315@lists.php.net to get a copy of this message
Hi! >> Reduce assertions*, enhance self-documentation, making code more robust, >> perform checks in the VM and not in userland, ... You don't reduce assertions, you just make them more cryptic and change error message slightly. > Oh oh oh, I forgot the very important unions *int|string* and > *float|string* for overflows as one can encounter them from time to > time; even in native code. Not sure what are you referring here to, but I suspect you are trying to reimplement weak typing in some partial inconsistent and strange way, while pretending it's strong typing. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#92315) next »