Re: What do we need strict scalar type hints for?

From: Date: Wed, 04 Feb 2015 15:42:39 +0000
Subject: Re: What do we need strict scalar type hints for?
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-81819@lists.php.net to get a copy of this message
On 02/04/2015 04:32 PM, Dan Ackroyd wrote: > btw For your exact example sin((float)$x). this is actually a > case > where another scalar type of 'number' which is satisfiable by either a > float or an int would be useful, but that's definitely a step too far > before we have any scalar type hints. We already have a name for that: numeric (is_numeric()).

« previous php.internals (#81819) next »