Re:PHP7 Gains Scalar Type Hints
by marrs on Tuesday March 17, 2015 @09:41AM
(#9217792)
I take your point that this is nice syntactic sugar, but I don't like your example. You wouldn't typecast in this situation. You would check the value with is_numeric() or similar.
[ Parent
| on HN ]
There are no comments on this comment yet.