Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83677 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13820 invoked from network); 24 Feb 2015 16:44:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 16:44:16 -0000 Authentication-Results: pb1.pair.com header.from=pjsturgeon@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pjsturgeon@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.182 as permitted sender) X-PHP-List-Original-Sender: pjsturgeon@gmail.com X-Host-Fingerprint: 209.85.217.182 mail-lb0-f182.google.com Received: from [209.85.217.182] ([209.85.217.182:33716] helo=mail-lb0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/71-05669-E5AACE45 for ; Tue, 24 Feb 2015 11:44:15 -0500 Received: by lbvp9 with SMTP id p9so26303778lbv.0 for ; Tue, 24 Feb 2015 08:44:11 -0800 (PST) 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=m0xUy+jl5wMdOqZkabBhOBhL9M4u6G0vCBqNXdHEoxE=; b=TluzYE2i5Fk6Ihhdr7ynzxNEHPA6lm1NALbDi/IfACLXV1PLsKJp/YzVU3EO+C8qGL ZhTxTBs0OmYMV8CodXa0LOgubP26T6knyiZRPfcJWShq/7OLHx+CLvn/ctPHSmO91xF2 fC3f7QUXCnCfJg++/wC6U8kz/Lg8GRcqp+AnQ/1czZmsMq5FDDNayiIlAPpS+OJu6zbV 6RAlBcIq4okIM/jcoyYWGjMkTBMFUzx3l0IMuRdk3w2mznRNFE3T/1PjPHgXZ9HTvs/o Ev839JW9jpv812G0RpVjCuWSa+U/7prA8DZByW7QT4wvCVCXBxgQVsm2NH3oDnf8M3gW T8tw== MIME-Version: 1.0 X-Received: by 10.152.42.238 with SMTP id r14mr15266618lal.13.1424796251195; Tue, 24 Feb 2015 08:44:11 -0800 (PST) Received: by 10.114.26.34 with HTTP; Tue, 24 Feb 2015 08:44:11 -0800 (PST) In-Reply-To: <54EC9FD1.3010009@anderiasch.de> References: <54EC8ABD.7040802@birkholz.biz> <54EC917B.4000309@anderiasch.de> <54EC9FD1.3010009@anderiasch.de> Date: Tue, 24 Feb 2015 11:44:11 -0500 Message-ID: To: Florian Anderiasch Cc: Dennis Birkholz , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Anonymous Classes From: pjsturgeon@gmail.com (Philip Sturgeon) On Tue, Feb 24, 2015 at 10:59 AM, Florian Anderiasch wrote: > On 02/24/2015 04:31 PM, Philip Sturgeon wrote: >> On Tue, Feb 24, 2015 at 9:58 AM, Florian Anderiasch wrote: >>> On 02/24/2015 03:29 PM, Dennis Birkholz wrote: >>>> Am 24.02.2015 um 14:52 schrieb Philip Sturgeon: >>>>> https://wiki.php.net/rfc/anonymous_classes >>>> >>>> I like the idea of having anonymous classes, it is very helpful during >>>> development to just try something out without having the burden of >>>> creating a new file and a complete class including namespace and use >>>> declarations, etc. >>> >>> I don't buy this argument. If your class loader or PSR prevents you from >>> temporarily adding a 2nd bogus class to the same file (not talking about >>> best practices here, obviously) then there's the culprit and it's >>> nothing the language needs to fix. >>> >> >> Your reply seems to assume that avoiding rules in a PSR is the only >> benefit of the RFC, which is weird when there is a whole RFC full of >> benefits of this RFC. > > My reply was simply re: the quoted paragraph in the mail I directly > replied to, not yours. I simply think "trying something out" is not a > valid use case of anonymous classes. > > I can generally like the RFC and still refute arguments in favor of it, > right? :) > > ~Florian I gotcha. Again though, Dennis wasn't saying "trying something out" is the only benefit, just the one. We can take that argument and shove it under the rug for sure, but it's perfectly reasonable for me as one of many arguments for it.