Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69769 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42233 invoked from network); 22 Oct 2013 17:21:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2013 17:21:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.181 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.181 mail-ie0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:40423] helo=mail-ie0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/87-10840-DF3B6625 for ; Tue, 22 Oct 2013 13:21:01 -0400 Received: by mail-ie0-f181.google.com with SMTP id ar20so2333462iec.12 for ; Tue, 22 Oct 2013 10:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=IezMDwO4pkoJMdn32zyQksNc173yWQzo4uRND6aN3hM=; b=VOvnJuUbIfVE7Fao5WR5Qp0yVd3RcvWpfZDgSUOuMqyklI3qDFnMmz6QhfYg2odrZl ydJ6vWuP5hQIJRlpLULZW7rZ4xLdUdT5+6F/B2ojammEgdnYE9xiwxexjADfOOAYLYui 5u2SDJrpXjyWgxTiEoU9JNlUtNokxC2S85GgY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=IezMDwO4pkoJMdn32zyQksNc173yWQzo4uRND6aN3hM=; b=f4J5Fr4t0vBP1vlYZVn+rt4QTwZzfP9MVWmLnEmZwDVwbWeRcBXnpnjAlil/1qpVUT QtvMOFn7SOLYOpKcUzvj7KEM1XGhSL4xm9OovuoksXrfntgM0lol5mZANG8SmPyAZjgg TT9ILdwxV2+DzZjs2lH5Onf75NJhZwnyfILm92UYDQSUcd1bELa2/9+MORXPmt/PXdh5 BLpcNmCgK+E85XPBch1hLA7ZxcbaITwI9bCIHy7UP+wUh60f/MwZHkWyNBQJeOiXiTts gHnkvAX/Eclf4iG6R4TBKZaHtQXDhRXiQ9aiqV71vtqYeCu+bERI6WZuLiBIIt0ra/nI 9e9g== X-Gm-Message-State: ALoCoQljyJbtpHwoTMIdCfKxb2IsJwKqyp+FWbLr+71+gUmsYytn58H+yn5WijTgtRS0hO6u3u+a X-Received: by 10.42.227.72 with SMTP id iz8mr2955876icb.27.1382462458271; Tue, 22 Oct 2013 10:20:58 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.42.206.208 with HTTP; Tue, 22 Oct 2013 10:20:38 -0700 (PDT) In-Reply-To: References: <3D.BC.23638.84CA1625@pb1.pair.com> <5264FE65.8050808@php.net> Date: Tue, 22 Oct 2013 10:20:38 -0700 X-Google-Sender-Auth: C5wtwgy_nZAs7xOpGADwpH0ntjQ Message-ID: To: Derick Rethans Cc: Joe Watkins , PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Expectations From: aharvey@php.net (Adam Harvey) On 22 October 2013 02:08, Derick Rethans wrote: > I'm pretty convinced that expectations *without* exceptions are a good > idea, as using assert (which is really eval) is a nasty thing that > should be replaced, but IMO exception throwing should not be part of > this feature. I agree that something to replace the eval-based assert() would be good. What if the new syntax simply respected assert_options(), and assert_options() was extended to support an explicit ASSERT_EXCEPTION control option (that presumably took an exception class name as its option value)? That seems like it would provide the exception based possibilities that some posters want while maintaining the same assertion behaviour that users are already used to by default. Adam, who apologises if this has been suggested before =E2=80=94 this was a long set of threads and I've been busy.