Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92414 invoked from network); 7 Jun 2011 13:47:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2011 13:47:53 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:59342] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/EB-30784-80C2EED4 for ; Tue, 07 Jun 2011 09:47:52 -0400 Received: by bwz18 with SMTP id 18so4842221bwz.29 for ; Tue, 07 Jun 2011 06:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=IyqwfVIzS5juvltE9zhnoa8U+gYbx8YMj3FMEVyIcfc=; b=VjB+TiHVbsEdc1OpF1/WOPgDxMJR2VeG2c1QyTsaKyw3sNX4vy0+fS5UWrzDG+hffg 4Uv0ocaMAYj4dAQ85mCTzruBOGAzIaZGfdSsYucTN3aiyW77q6a33T+SYsJ5SIGz8dq3 Dq/mfgnjLn9Ic0e5sZVupp2aZ+YOUKdAh3iFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=R+kUkjg0L0AgxgVyAzvrBU4U47HOygbdZhegyqJuzbctjEKCw5keKplOuyLPzSdY41 dJQ0+Iw4MN4Ec3L4PL/qXjCKLGPs3bBAnEBzkX7eDbU2QNTEfQykahL7m5xyyi4hZnrK x5D/w4yq8/gywHs4RBL/MOZZIwe0PG4SWNU9s= Received: by 10.204.8.141 with SMTP id h13mr589232bkh.64.1307454469202; Tue, 07 Jun 2011 06:47:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.56.66 with HTTP; Tue, 7 Jun 2011 06:47:29 -0700 (PDT) In-Reply-To: References: Date: Tue, 7 Jun 2011 10:47:29 -0300 Message-ID: To: Hannes Landeholm Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=00151743fa5632653804a51f7703 Subject: Re: [PHP-DEV] Inline constructing/cloning and inline foreach listing From: felipensp@gmail.com (Felipe Pena) --00151743fa5632653804a51f7703 Content-Type: text/plain; charset=UTF-8 Hi, 2011/6/7 Hannes Landeholm > Hi, > > I like to do stuff "inline" instead of cluttering my code with variables. > There are currently three syntaxes/expressions which are currently not > supported but I hope could be implemented until 5.4. > > First inline constructing (which I think has already previously been > discussed), but also cloning, e.g: > > // Inline constructing: > $car = (new CarFactory())->makeCar(); > I've already proposed such feature: https://wiki.php.net/rfc/instance-method-call Thread: http://markmail.org/thread/4rr3w52k5hfxi4qs -- Regards, Felipe Pena --00151743fa5632653804a51f7703--