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

I do not know of any language in which you have to declare that 2 is an integer. I do know of a few that require you to have stated whether the variable you are assigning it to is to be regarded as an integer or a float.

This is not a good example, as it is unreasonably biased towards making explicit typing look like pointless bureaucracy. A better example would be "2". Or the struct / tuple { 2, 2.0, '2', "two" }.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: