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

Does anyone have thoughts on how natural it feels to use ‘:’ instead ‘=‘ for variable creation? From a distance it has a nice elegance, but it is interesting how few programming languages make this choice.


I've always felt similarly. Obviously using "=" comes from math ("let x = 1"), but I've always felt it was such a barrier to a newcomer. Both because of variable creation (it looks more like the answer to a problem, rather than the initial premise) and because then we have to add ungainly new symbols such as "==" and "===" to test for equality.




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

Search: