Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98892 invoked from network); 30 Nov 2011 20:21:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2011 20:21:18 -0000 Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: peter.e.lind@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:61242] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/50-30469-C3096DE4 for ; Wed, 30 Nov 2011 15:21:17 -0500 Received: by ywt2 with SMTP id 2so1218406ywt.29 for ; Wed, 30 Nov 2011 12:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=eTFCips5oDMzyHBYrykoigVyhzKQpswXH4FYH2oo0H8=; b=MKZ2DYX4uAvnke2BjHm8O4hLUVfKOIqhvnxtRNRBmIiypr1qkgFBt6DxNAQxVkk2LP eAb1i74fovlxTXr8Ba20vuP+tFAE5wW6v8B9iZAzjqimOcwRaPV3INxIM9jKztcO7PE5 J/t+3A7E6TnzYukHikXzp3sV58CYUxBoih0/k= Received: by 10.50.40.198 with SMTP id z6mr3556317igk.39.1322684473184; Wed, 30 Nov 2011 12:21:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.51.74 with HTTP; Wed, 30 Nov 2011 12:20:48 -0800 (PST) In-Reply-To: References: <4ED6713D.2050009@ralphschindler.com> <4ED67DCB.5090102@ralphschindler.com> <4ED68940.3050502@alliantinternet.com> <00ea01ccaf9a$2ab7e160$8027a420$@alliantinternet.com> Date: Wed, 30 Nov 2011 20:20:48 +0000 Message-ID: To: Will Fitch Cc: Dmitri Snytkine , Ralph Schindler , Nikita Popov , internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] 5.4's New De-referencing plus assignment From: peter.e.lind@gmail.com (Peter Lind) On 30 November 2011 19:59, Will Fitch wrote: > Again, back to my question of why not use: > > MyComponent::factory($bar, $option); > > Depending on what ::factory does, it could then pass $option(s) to the constructor or method getting your instance needed. > It brings to mind a review of Dart by a perl-guy (http://blogs.perl.org/users/rafael_garcia-suarez/2011/10/why-dart-is-not-the-language-of-the-future.html). Specifically: "I should note that the integration of popular design patterns at the syntax level is disappointing: design patterns tend to emerge to work around a language design's weaknesses. Embracing them is a bit like admitting a design failure up front." The proposed change has the same feel to it. Regards Peter -- WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15