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

Nice one, never occurred to me even though I sometimes would write my assignments this way. I guess the problem is it doesn't generalise to the case where you are comparing two variables.

Fortunately not a problem with Python (the pedantism works!). I still think I prefer Pascal's := for explicit assignment though. Wish more languages would adopt it.



Yeah, MySQL does that as well. That is one of my big problems. I program 70% of the time in MySQL where "=" is used for comparison, so it is hard to switch to "==" when I occasionally need to.




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

Search: