Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35688 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6794 invoked by uid 1010); 21 Feb 2008 12:56:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6779 invoked from network); 21 Feb 2008 12:56:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2008 12:56:29 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 85.10.196.195 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 85.10.196.195 serveforce1.backendmedia.com Linux 2.6 Received: from [85.10.196.195] ([85.10.196.195:53825] helo=serveforce1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/D2-21621-CF47DB74 for ; Thu, 21 Feb 2008 07:56:28 -0500 Received: from [192.168.84.38] (office-zh.liip.ch [91.192.102.250]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by serveforce1.backendmedia.com (Postfix) with ESMTP id 9D1B81224A6D; Thu, 21 Feb 2008 13:56:56 +0100 (CET) Cc: internals Mailing List Message-ID: <03E69BFA-BDFB-4BAF-9109-DE840A35F1E8@pooteeweet.org> To: Gregory Beaver In-Reply-To: <47BD207C.2080905@chiaraquartet.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 21 Feb 2008 13:55:39 +0100 References: <47BD207C.2080905@chiaraquartet.net> X-Mailer: Apple Mail (2.919.2) X-backendmedia-com-MailScanner-Information: Please contact the ISP for more information X-backendmedia-com-MailScanner: Found to be clean X-backendmedia-com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.044, required 6, AWL 0.04) X-backendmedia-com-MailScanner-From: mls@pooteeweet.org X-Spam-Status: No Subject: Re: [PHP-DEV] Trait aliasing syntax suggestions From: mls@pooteeweet.org (Lukas Kahwe Smith) On 21.02.2008, at 07:55, Gregory Beaver wrote: > Simply re-using "trait" instead of "use" is a more self-documenting > solution. I found it slightly confusing to see "use" when that is a > namespace-specific token currently. This is also in keeping with the > way functions are defined in interfaces vs. implementation, but in > reverse (for traits, brackets are used for declaration, semi-colon > used > for instantiation). I like "trait" instead of "use" or any of the other proposals as well > Obviously, using "unset" is more similar to current PHP ideas on how > to > remove something, and the "as" syntax is also very PHP-ish, these will > be far more self-documenting than the proposed syntaxes I've read > thus far. Unset seems to send the wrong message again. "hide" might be better? As I said before "as" for aliasing is a good choice, or "alias" to make it even clearer. @Stefan: are you keeping track of all the different syntax proposals? regards, Lukas