Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: