Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14697 invoked from network); 21 Oct 2013 04:57:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2013 04:57:55 -0000 Authentication-Results: pb1.pair.com header.from=leverton@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leverton@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.49 as permitted sender) X-PHP-List-Original-Sender: leverton@gmail.com X-Host-Fingerprint: 209.85.219.49 mail-oa0-f49.google.com Received: from [209.85.219.49] ([209.85.219.49:35361] helo=mail-oa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/79-44908-254B4625 for ; Mon, 21 Oct 2013 00:57:54 -0400 Received: by mail-oa0-f49.google.com with SMTP id j10so4570982oah.8 for ; Sun, 20 Oct 2013 21:57:52 -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 :cc:content-type; bh=EekB985//p7Smx8nY0/Wj2IN8XGqp40u4lnAOkyZ5vc=; b=PeMp998K+/w3QSa7zs9oOQ6If4WKPYwezB4MC+l7z1mptPKTi4Tu05FOmMq/6Qmbcv P7H8tYMdixyVQD+KpQvRdcL14oAIzzkoKt5fX1AdXrzvHBC36K1tVe1Hy/Ds1x6rljBw T65lHWzPq7AZEON01soOILPAcBTqFDPmX2CFj7KrktWLcCgV4Blo2d3I8NgbPzlvgFZH 5DveMs+OZrju9tn1l11R/nvN8H5QyLb/dXXH9JpTEKBV65v30Wx/R6v7sGXQJf8llpRz QYr6wyEbaAB5+C6N9lcG98FpRF7qqOmZbkhE9JOpENo+t3cBkprU9ax9V5dyLO3DYZqy GsYw== MIME-Version: 1.0 X-Received: by 10.60.173.205 with SMTP id bm13mr5745386oec.25.1382331471993; Sun, 20 Oct 2013 21:57:51 -0700 (PDT) Received: by 10.182.77.68 with HTTP; Sun, 20 Oct 2013 21:57:51 -0700 (PDT) In-Reply-To: <526488C1.8020400@php.net> References: <3D.BC.23638.84CA1625@pb1.pair.com> <000301cecd1b$9aa133f0$cfe39bd0$@tutteli.ch> <526488C1.8020400@php.net> Date: Sun, 20 Oct 2013 23:57:51 -0500 Message-ID: To: Joe Watkins Cc: PHP internals , Ferenc Kovacs Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC: Expectations From: leverton@gmail.com (Matthew Leverton) Since this would throw exceptions, could it look like (or be) a final/abstract (although PHP doesn't allow that combo for some reason) class with static methods? Assert::isTrue($expr, $msg); That syntax is already valid (so of course there are BC issues) and I don't know how practical it is to optimize that away to nothing, but it would be more consistent with regard to throwing exceptions and would allow for a variety of different class methods. -- Matthew Leverton On Sun, Oct 20, 2013 at 8:52 PM, Joe Watkins wrote: > On 10/20/2013 12:15 AM, Ferenc Kovacs wrote: >> >> On Sun, Oct 20, 2013 at 12:36 AM, Robert Stoll wrote: >> >>> Heya, >>> >>> I do not know how much it concerns this RFC but I came across the >>> following >>> page about an extension named "Expect" when I was searching for RFC >>> Expect >>> with google. >>> http://php.net/manual/en/book.expect.php >>> >>> I suppose there would be a name clash between the extension and the new >>> expect keyword. I do not know how internals usually deal with such >>> problems, >>> especially if it is within an extension, but I am sure someone will know >>> it. >>> >>> Cheers, >>> Robert >>> >>> >> it was discussed on irc, there is not problem here, because the ext name >> and the function name can't clash, and the ext doesn't have a function >> with >> the name of expect, so everything is fine afaik. >> > > Rasmus has pointed out that there is an expect:// stream wrapper. > > So looks like we need a new name ?? Ideas ?? > > > Cheers > Joe > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >