Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67141 invoked from network); 3 May 2013 03:11:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 May 2013 03:11:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=adamjonr@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adamjonr@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: adamjonr@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:41309] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/C4-37535-3FA23815 for ; Thu, 02 May 2013 23:11:47 -0400 Received: by mail-ob0-f170.google.com with SMTP id ef5so1090490obb.15 for ; Thu, 02 May 2013 20:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=zdkdjiZOVnrJGKsicO7gJ2cFIh0IglUa1o2AvjjIWGE=; b=dWpF3YW1LUASjtAfsuJwDkDsczJImpRQ/3PK8FwZP6KBRL8lXH4+g8KTemXEcNfsxj Nh6C/BZGaDwycU8Wuk/KNvuqPkVbxW4drQz2PcXIPJc/WSiTR251Nqf2N4IU9WuowBTZ BgUOg5jQEkEgwrlUoz/2IqpiEo1ee8fH0FBDJ6wpqGzXq3Oy8iTI3ov25eSvy259nWpO ave1qW+GFar9VUaT3QXMi/m+IUKo3bv72m3X+UKMRXJ3cwZ4xHIJW444NR9m3A5UCvhP mb4WscTbYsYiiQg8ycgh2cHTFOR+sDBR6ACLdIo1KFw3p4xdkyE8qqvlOGZ8mjPbtqRR g+Ig== MIME-Version: 1.0 X-Received: by 10.60.141.226 with SMTP id rr2mr2502399oeb.35.1367550704819; Thu, 02 May 2013 20:11:44 -0700 (PDT) Received: by 10.182.237.72 with HTTP; Thu, 2 May 2013 20:11:44 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 May 2013 23:11:44 -0400 Message-ID: To: Stuart Langley Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] A better error handling approach. From: adamjonr@gmail.com (Adam Jon Richardson) On Thu, May 2, 2013 at 6:46 PM, Stuart Langley wrote: > So is the feature you're describing is tuples and a use case of that feature > is an easier way to do error handling? No. Tuples are an implementation detail specific to how Python allows one to conveniently return multiple values. I merely mentioned this because PHP's ordered hash maps (arrays) provide a similar avenue of implementation. The ability to conveniently pass back multiple values is necessary to implement and promote an error handling convention similar to Go's, a convention that seems to work really well for many cases. I was proposing that this approach be considered as an addition to PHP. Adam