Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13626 invoked from network); 4 May 2016 12:40:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2016 12:40:48 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wm0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:38661] helo=mail-wm0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/46-08540-ECDE9275 for ; Wed, 04 May 2016 08:40:47 -0400 Received: by mail-wm0-f51.google.com with SMTP id g17so91707489wme.1 for ; Wed, 04 May 2016 05:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=p6FMevaeKN2MwlYfoScAt+gmqZWyJ9mycJh/vgPznKc=; b=rKXL/Rpdw/jIpPyIFIVr+wpiln5Qpyp6m25XW3ei0mt3t1DF7+/g6eZgR/BGSfEQ7x jymTXxJEQKDmmB1A8s6bRaFxOePdndowOR3jSiNPmGUihotjabW6V0JUdgK78hQOrj14 9T0grkrIHrd14g739ZDD7Yz83Kux6pUsE4QpSx8Tfr3zzq2TlM+5Xry5CKEMjT8s3MVO EO73mKin/dDyxFzsY/R6sEX58pd7Sc21fFdV6dKzGctV5ahT1cOQHk7+bQ3hAVa5y3lK HBnZtK4QatcPhm678OstgmIhfWRnwg6LrogRBl8HtJdVU8cu9itsPCOuROZg7z8exR99 JxQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=p6FMevaeKN2MwlYfoScAt+gmqZWyJ9mycJh/vgPznKc=; b=hgeXCTyYfolpCJFle6YMi2U6GBgPd6RGn+zU0XqIr8OCIgmOdPO35TtADQyrQneklC 86+ULate8+0e1ZQfVu2vHYvq82QC30vs3yVTc84FGaXUI3PKoArtQ47wS/f134UNIbML 5SmexDQ0LNP4gNNGYOm6CnbZ+o9xmXRUspm/prTzQ5Ox987Xr+kCuy0y+3acP9JdVP5d Ke0oR67XxfuO2xdK1BAGm45yJ2MK5VKYTvML7Rd61I8sc9MwhY/FNyIHWyRrX2GlgL+5 jH4lZykc4ECi482bB988atEwNASAn/jxOqbpglumOiMmAAvjlK8b7qv/gzHzdRX0O9To 2pgA== X-Gm-Message-State: AOPr4FV8MW/NY6acymwu+qgoDZcMK4iS23pLQ6ZKd3ly5kxEOrkCzJY9p9Io/v4HvZ4JPg== X-Received: by 10.28.230.137 with SMTP id e9mr9585903wmi.0.1462365643232; Wed, 04 May 2016 05:40:43 -0700 (PDT) Received: from [192.168.0.76] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id b1sm4776912wma.13.2016.05.04.05.40.42 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2016 05:40:42 -0700 (PDT) To: internals@lists.php.net References: <5723F2AE.2020806@garfieldtech.com> Message-ID: Date: Wed, 4 May 2016 13:38:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Attributes/Annotations Case Study: Drupal From: rowan.collins@gmail.com (Rowan Collins) Jesse Schalken wrote on 04/05/2016 13:20: > (maybe there should be a $ before the property names, not sure) And there's the rub! :P When named parameters have been discussed before, there was a lot of bikeshedding over what the syntax should look like, and this is arguably a very similar feature. You could either think of this as "setting lots of variables": new Foo { $bar = 1, $baz = 2 } or you could think of it as "an object literal like an array literal": new Foo { 'bar' => 1, 'baz' => 2 } And then we also need to think about sitting nicely with anonymous class syntax. Not to mention Joe's proposal for lexical scope: https://wiki.php.net/rfc/lexical-anon For the record, I like the idea, if we can come up with a consistent plan for how these pieces of syntax will work together, and not paint ourselves into an ASCII-art hole... Regards, -- Rowan Collins [IMSoP]