Re: [RFC][DISCUSSION] Object type hint, now with added variance

From: Date: Wed, 15 Feb 2017 15:34:25 +0000
Subject: Re: [RFC][DISCUSSION] Object type hint, now with added variance
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-98300@lists.php.net to get a copy of this message
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/

« previous php.internals (#98300) next »