Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64886 invoked from network); 17 Sep 2014 08:46:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2014 08:46:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.181 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.181 mail-pd0-f181.google.com Received: from [209.85.192.181] ([209.85.192.181:49317] helo=mail-pd0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/21-57031-55A49145 for ; Wed, 17 Sep 2014 04:46:13 -0400 Received: by mail-pd0-f181.google.com with SMTP id w10so1695464pde.12 for ; Wed, 17 Sep 2014 01:46:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=XNCqxdLWW5zgY6ZJWpL4B7EjzeWgFFkjGKi/mczt8y8=; b=PDqsc7gCUWjljiKbAW4i5NT2+jNB7QUz7xNS75khAojCF6leHebd89i4OaFEXL+rLr 3AfiH1JW7xYZJMBHw6FUNJ1KvECHp+CBJk3Uy8rCObKGWsKypTQ0CZs2Hch0qSzaxrGE j+ayDogGUeS0BOxPIDJUAYQh0PxZEh/x6Y+OdBC78l4ePxh2vty1nuSTclXincW1HlZW e2JW3y72bxSze78tlHwu6PD8z4HJQXbGbCwEd1LRqbynlRkPlFL/IjG+ZPSXJMbezsuj w5uNJ6KjQJE6DKr0eLW07oxCEguxlZGeZElF2mLWnlse42lY/XA1MZwndK+0gtNj4/fW hKhA== X-Gm-Message-State: ALoCoQnwNwAs0DJdOBKr/h2tYdFBwMpdoMoIu7ChuRyZeqn88JyUrxXibb4QyROw0/8BKX90DOqS X-Received: by 10.66.139.232 with SMTP id rb8mr23659227pab.130.1410943570721; Wed, 17 Sep 2014 01:46:10 -0700 (PDT) Received: from [10.0.1.108] (c-71-198-113-183.hsd1.ca.comcast.net. [71.198.113.183]) by mx.google.com with ESMTPSA id ve13sm16790844pac.6.2014.09.17.01.46.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 01:46:09 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (11D201) In-Reply-To: Date: Wed, 17 Sep 2014 01:46:09 -0700 Cc: internals Content-Transfer-Encoding: quoted-printable Message-ID: <908B15B3-0F21-4A92-B129-152EA7201F89@golemon.com> References: To: Levi Morrison Subject: Re: [PHP-DEV] Renaming type-hints to something else? From: php@golemon.com (Sara Golemon) > On Sep 16, 2014, at 8:11, Levi Morrison wrote: > Can anyone come up with a better name than `hints`? Maybe `type > declarations`? Or should we just stick with `hints`? My general feeling is to leave it alone. I agree that it's a misnomer, but a= s has been mentioned, it's a well established misnomer. I don't see a big g= ain from it apart from academic purity. That, said, while I don't support a yes vote, I wouldn't bother voting again= st it. I do worry about a small class of extensions which inspect type hints. They= 'll need to ifdef around the API version to keep working. But I'll be hones= t, there's probably very few of those, and I probably wrote a sizable portio= n of them out of boredom. Even if they're more common than I imagine, the w= ork-arounds are easy and reasonable, and anyone with a lick of C knowledge c= an manage it in a few minutes. As for Hint versus Declaration/Decl or Annotation or whatever... My second c= hoice (since staying with hint is my first) is probably decl(aration). Desp= ite my HHVM loyalties, I'm not fond of using "annotation" here anyway. Ther= e's a reasonable argument in this thread for "check", but that feels clumsy f= rom the user side. -Sara (My .02 USD)=