Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35621 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29813 invoked by uid 1010); 19 Feb 2008 21:56:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29798 invoked from network); 19 Feb 2008 21:56:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2008 21:56:58 -0000 Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.179 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 64.233.166.179 py-out-1112.google.com Received: from [64.233.166.179] ([64.233.166.179:53470] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/AA-55225-9A05BB74 for ; Tue, 19 Feb 2008 16:56:57 -0500 Received: by py-out-1112.google.com with SMTP id u77so2181129pyb.16 for ; Tue, 19 Feb 2008 13:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=A5Tu01XkVNMFMH5WLWAAL/MoJ3EMliYr0shxD83RlsA=; b=oFovBgiNIvGgUBN4H5eOWxFnPpgih9T+JojSs4BpwsxogXsjjaZxHiAQoQuJjDXuIAsUeOjj8OmneCIOIeiOqNBfGidrI0gvSY4+IVyjR2IG+dCK6ZHc3q9YLCcC44P/atms+pCGw7AaAt8zrW2iMMrSTz8KmlMpzPGDU2TNNFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gx5liJwP6T5ahUYRqW+x1kWgSMNwHiFsK9lxF8tm8sSJlajdm8OtY4zJFcqZzg1e10bZIdIKpkgZS4kVhDxhwKQm+9HebsvJHHpJjNITl8xaBuge4hKujJVYFcNcpsLZben/meot8ANao9ySzInXYuNQs8iHOPC5XwEJ6CWfvTg= Received: by 10.141.85.13 with SMTP id n13mr5063796rvl.256.1203458214942; Tue, 19 Feb 2008 13:56:54 -0800 (PST) Received: by 10.141.178.10 with HTTP; Tue, 19 Feb 2008 13:56:54 -0800 (PST) Message-ID: <98b8086f0802191356g276f6337o1a8f32b8a3a9eab8@mail.gmail.com> Date: Tue, 19 Feb 2008 22:56:54 +0100 To: "Stefan Marr" Cc: internals@lists.php.net In-Reply-To: <1e12984d0802191302g8a55b1ak748419b16163ee4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <001c01c87264$3c01b4e0$b4051ea0$@de> <173732199.20080219175837@marcus-boerger.de> <1e12984d0802191302g8a55b1ak748419b16163ee4@mail.gmail.com> Subject: Re: [PHP-DEV] RFC: Traits for PHP From: troelskn@gmail.com ("troels knak-nielsen") On Feb 19, 2008 9:54 PM, Jochem Maas wrote: > how about 'possesses' or 'exhibits' - both these words are closer to the > natural language usage of 'trait' with regard to a subject. > > John exhibits a **** trait > Jack possesses a **** trait I prefer ``without`` over ``except``, because ``except`` is close to ``exception`` and because it has a different meaning in other languages (Eg. ``catch``). > > > >> I'm not sure if the use-keyword is a good idea as namespaces are already > >> "used". If we use "use" for traits, maybe going back to "import" for > >> namespaces would be the way to go. I agree that ``use`` is a bad choice, because of the nameclash with the namespaces syntax (pun intended). ``possesses`` is hideous, but ``exhibit`` isn't too bad. On Feb 19, 2008 10:02 PM, Stefan Marr wrote: > Here are some notation proposals: > (snip) > > I'm not sure about Aa and Ab because they do not read well in my opinion. > > What do you think? > [Ac] How about this: class FooFoo { exhibit Traitor { alias foo as bar; } } -- troels