Hacker News new | past | comments | ask | show | jobs | submit login

   "foo" + 6 + 6
>Should be a compiler-error.

Why? "foo" is already a string, getting "foo66" from that makes perfect sense to me.

6 + "foo" though would be crazy.




Because it makes intent explicit in a way that helps catch errors earlier, and they are kinds of errors that real programmers actually make.


Fair enough.




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

Search: