Re: 5.4's New De-referencing plus assignment

From: Date: Wed, 30 Nov 2011 20:20:48 +0000
Subject: Re: 5.4's New De-referencing plus assignment
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-56695@lists.php.net to get a copy of this message
On 30 November 2011 19:59, Will Fitch <will.fitch@gmail.com> 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 -- <hype> WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 </hype>

« previous php.internals (#56695) next »