Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37860 invoked from network); 10 Sep 2015 12:18:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2015 12:18:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:34886] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/71-24564-21571F55 for ; Thu, 10 Sep 2015 08:18:27 -0400 Received: by wicge5 with SMTP id ge5so22586344wic.0 for ; Thu, 10 Sep 2015 05:18:24 -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-type:content-transfer-encoding; bh=ZtQRqOFuAQO4V8O01ssqeq3g7sDt4e5EI3HcRq1smsY=; b=IjI74x9e7vnzO9dlXVQ5nLkTZB3ItCxm5SqHQQcyGY1sO56YsLKS6T2CtD4ZC5KMoT Vq2GLB79Gmt2pfPZcsYd8QtFGGN3D9d7+iGf7LX1mEK1zHphU41ptM8Y6ITS/6SM78Nb T4TWwUboDBQrgwH/S4Uk9m059AaDBHVncLfdsJjwe8ca8IhttT+h/JCFrIY3QiFINfCA IF3aA2ktk5HDHrdHdM/9Wq4Zt0rWKftDQdEthKBHkT6JMt+WF5pfz8JuzfeaJA+1IuMd ahc1ndDG0w78Ctjasuru9/Mld8XM/ktFBMgPgHMqHByvpztxhtMUPlg4D2HmlhlylKqQ c8mw== X-Received: by 10.194.205.37 with SMTP id ld5mr73722737wjc.14.1441887503938; Thu, 10 Sep 2015 05:18:23 -0700 (PDT) Received: from [192.168.0.134] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id lz10sm15355975wjb.48.2015.09.10.05.18.22 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Sep 2015 05:18:23 -0700 (PDT) To: internals@lists.php.net References: <55E4B9AA.9060906@dasprids.de> <09.54.59944.CD76CE55@pb1.pair.com> Message-ID: <55F17500.6080806@gmail.com> Date: Thu, 10 Sep 2015 13:18:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <09.54.59944.CD76CE55@pb1.pair.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Generic classes and methods RFC From: rowan.collins@gmail.com (Rowan Collins) Andrea Faulds wrote on 06/09/2015 17:20: > If we hadn't seen the class declaration at the top which makes > `KeyType` and `ValueType` be type parameters, we might not realise > they weren't ordinary classes or interfaces when we looked at > `__construct`. The -Type suffix you've used helps a little, but that's > a convention, and isn't guaranteed to be used. Also, in some existing > projects, there might be classes with that suffix. As I understand it, the convention in a lot of languages is that type parameters are a single upper-case letter. I'm not sure if any enforce this restriction, though, and a sigil does seem more flexible and readable. Regards, -- Rowan Collins [IMSoP]