Re: [RFC] Scalar Type Hints

From: Date: Thu, 01 Jan 2015 17:00:21 +0000
Subject: Re: [RFC] Scalar Type Hints
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-80062@lists.php.net to get a copy of this message
Hey Marco, > On 1 Jan 2015, at 16:56, Marco Pivetta <ocramius@gmail.com> wrote: > > The problem is that the current proposed hints/casts are deviating from the type-hints that we > are used to, therefore this particular feature should (eventually) have an alternate syntax, whereas > the strict hints would just use int, > integer, string, > float, bool, > boolan without additional chars (assuming that we will get strict > hints somewhen). I wouldn’t say it’s really such a great deviation. We use the same syntax for scalars and non-scalars in the manual. > This will also reduce clashes with the current HHVM implementation. HHVM doesn’t have scalar type hints for PHP. Hack does, but Hack isn’t PHP. Thanks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#80062) next »