Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54185 invoked from network); 16 Jul 2012 09:36:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2012 09:36:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajfweb@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajfweb@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: ajfweb@googlemail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:58056] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/59-20866-690E3005 for ; Mon, 16 Jul 2012 05:36:23 -0400 Received: by wgx1 with SMTP id 1so908623wgx.11 for ; Mon, 16 Jul 2012 02:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+YChUQ87BwSl0HuFVaHB0v5gD8qvLpocY7zZ7mj3yoE=; b=yRC9dfhe+LIq/kaH03DTOFCCuxtoJ1JC/Vdr6m8bQ0xt/9IQuNfaiwaQnMxevze4Lh iICfgwN81O1Matk/DNteXrpjojZ8YtiPp1VEU1OlQcQQVE/Jr9uMcCr9k7+GVSGct5TR /EaM6+YQPu/DcfkX+nQYVkoAGkKPfgSPC5KQIno6stZvhshkxBrlgSxK9UE5GbF2G1GC hVms4A2uzGI9HVftxE9UKsy5LjB8MnoUK9wIDYPi8aKhoNBiM9syXlslkPJPYPFJHiCR MSl50Uo+fc2I2ekiA6WB1sWl1ftwJrym03982VMyJGzvvvCE6TGbnGqfdHeu0FFDNGZd lktA== MIME-Version: 1.0 Received: by 10.180.96.3 with SMTP id do3mr16767416wib.5.1342431380100; Mon, 16 Jul 2012 02:36:20 -0700 (PDT) Received: by 10.216.71.199 with HTTP; Mon, 16 Jul 2012 02:36:20 -0700 (PDT) Received: by 10.216.71.199 with HTTP; Mon, 16 Jul 2012 02:36:20 -0700 (PDT) In-Reply-To: <5003DDF4.5080709@b1-systems.de> References: <5003DDF4.5080709@b1-systems.de> Date: Mon, 16 Jul 2012 10:36:20 +0100 Message-ID: To: Ralf Lang Cc: internals Content-Type: multipart/alternative; boundary=f46d044481358bd4fb04c4ef2986 Subject: Re: [PHP-DEV] 6.0 And Moving Forward From: ajfweb@googlemail.com (Andrew Faulds) --f46d044481358bd4fb04c4ef2986 Content-Type: text/plain; charset=UTF-8 Yeah, we could do something like Java: primitive typed and OOP wrapped types. On Jul 16, 2012 10: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 > > --f46d044481358bd4fb04c4ef2986--