Re: 6.0 And Moving Forward

From: Date: Mon, 16 Jul 2012 09:36:20 +0000
Subject: Re: 6.0 And Moving Forward
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-61281@lists.php.net to get a copy of this message
Yeah, we could do something like Java: primitive typed and OOP wrapped types. On Jul 16, 2012 10:25 AM, "Ralf Lang" <lang@b1-systems.de> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > 1. Change the error handling system from the current E_* system to > > typed exceptions for everything but advisory errors (E_STRICT, > > E_NOTICE, E_DEPRECATED). Why? Because the current error system > > encourages ignoring or not checking what the error was, and it > > makes defensive programming quite difficult. This is arguable and > > preference for sure, but it's a major change that could have large > > benefits. > > > I like that one. Proposed something like this a while ago but back > then it did not fit into a minor release's scope and limitations. > > > Thoughts? > > Provide a stock "Number" and "String" object if primitives themselves > cannot be turned into objects for bc reasons. > > - -- > Ralf Lang > Linux Consultant / Developer > B1 Systems GmbH > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.18 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAlAD3fQACgkQCs1dsHJ/X7BLqwCg4/9mj2tgiBQtV6JZteJ0Fqat > bhwAoPMQy7M8CA2Ni4unFcRMDeUFiImg > =xRS8 > -----END PGP SIGNATURE----- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#61281) next »