Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53847 invoked from network); 17 Sep 2014 06:05:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2014 06:05:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 173.203.6.155 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 173.203.6.155 smtp155.ord.emailsrvr.com Linux 2.6 Received: from [173.203.6.155] ([173.203.6.155:33333] helo=smtp155.ord.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/2D-64534-29429145 for ; Wed, 17 Sep 2014 02:05:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp28.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id EDF761000DD; Wed, 17 Sep 2014 02:05:02 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp28.relay.ord1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 5D3E21000FB; Wed, 17 Sep 2014 02:05:02 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (S0106782bcb5020a1.vc.shawcable.net [174.6.76.239]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Wed, 17 Sep 2014 06:05:02 GMT Message-ID: <5419248D.40303@sugarcrm.com> Date: Tue, 16 Sep 2014 23:05:01 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Andrea Faulds , Levi Morrison CC: internals References: <74D45E97-4C96-41FA-B824-BCEBA056C654@ajf.me> In-Reply-To: <74D45E97-4C96-41FA-B824-BCEBA056C654@ajf.me> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Renaming type-hints to something else? From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The general concept should be called Optional Type Declarations, to > replace “Type Hinting". They are type declarations, and they are > optional. Thus the name. For the things themselves, they’re just Type > Declarations, to replace “Type Hints". So, for example: I'd just call it type declarations, the fact that they are optional is not part of their function, there are many optional things in PHP - e.g. visibility declaration for class members is optional, but we don't call it "optional visibility specification", or default values for parameters are optional, but we don't call them "optional default values". The fact that they are optional is kind of obvious anyway for anybody who have seen PHP code since most of PHP function parameters do not have them :) -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/