Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61332 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83138 invoked from network); 17 Jul 2012 03:40:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2012 03:40:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=nich.curtis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nich.curtis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: nich.curtis@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:38848] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/D0-12983-B9ED4005 for ; Mon, 16 Jul 2012 23:40:11 -0400 Received: by wgx1 with SMTP id 1so1545982wgx.11 for ; Mon, 16 Jul 2012 20:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=L/9dcaxIWcS5CniwK4cop9WTtKUCGSALJkCWwYoJpxQ=; b=iaRU9UyCakBTM3JRC6NgW2aBkBQYXxKtVrNEpRq0aNp+EwXWkTxYqKpIKpU2lilAAy arReZLLFJOXNsn4Q1iRRLxfJN9xcurchNXnWe64y0dV42VBY0JrAbqYrqYVTkhza/wQF Y4R4oujbrE6WLm7yfUav2SfH7IoPE0MXMbikwox97iopUlTCs/UqHp+OEzKOk0EFCwQa WXT9NxBGNI2Fj3GnHR2yEyH6vVBIew0k3S73zdxhnbuy+1UldZMl87vN/7JCocxvbZCA 6xvEX9L0EREn7a4LFeb8NfCECUMwqjozlP+HjO0959UD26ZYS3lDKe5xDz8oipL1GMx8 2KJg== MIME-Version: 1.0 Received: by 10.180.78.35 with SMTP id y3mr536871wiw.16.1342496408225; Mon, 16 Jul 2012 20:40:08 -0700 (PDT) Received: by 10.194.25.7 with HTTP; Mon, 16 Jul 2012 20:40:08 -0700 (PDT) In-Reply-To: <5003DDF4.5080709@b1-systems.de> References: <5003DDF4.5080709@b1-systems.de> Date: Mon, 16 Jul 2012 20:40:08 -0700 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] 6.0 And Moving Forward From: nich.curtis@gmail.com (Nicholas Curtis) Great Idea, would love to see current standard library in a legacy namespace and a new standard library implemented as methods of primitive types. $string = "Hello, World"; echo $strong->toUpper(); // HELLO, WORLD $int = 3; echo $int->round(2); // 3.0 While still preserving $legacy.strTopUpper($string) and $legacy.round($int) On Mon, Jul 16, 2012 at 2:25 AM, Ralf Lang 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 >