Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
marrs
on March 17, 2015
|
parent
|
context
|
favorite
| on:
PHP7 Gains Scalar Type Hints
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: