Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98300 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98140 invoked from network); 15 Feb 2017 15:34:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2017 15:34:29 -0000 X-Host-Fingerprint: 95.148.67.80 unknown Received: from [95.148.67.80] ([95.148.67.80:22026] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/81-13244-40574A85 for ; Wed, 15 Feb 2017 10:34:28 -0500 Message-ID: To: internals@lists.php.net References: Date: Wed, 15 Feb 2017 15:34:25 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 95.148.67.80 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object type hint, now with added variance From: ajf@ajf.me (Andrea Faulds) Hi Marco, Marco Pivetta wrote: > > Since the engine is clueless about types until autoloading happens, this is > easily solvable by providing a marker syntax for non-object hints. For > instance `function foo() : enym:MyEnum {}` If we're going to do prefixes for non-classes, we might as well copy C outright: `enum MyEnum`. Thanks. -- Andrea Faulds https://ajf.me/