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

I do like the comfort of being able to nail-down local things so that they don't move, as it were. The encouragement it provides is subtle, but i do appreciate it (especially on a large team, where colleagues span the full range of the talent spectrum).

I think it's worth noting that even a very shallow notion of immutability would provide enough comfort for me. Compiler writers could call it a "syntactic blanky".

https://en.wikipedia.org/wiki/Security_blanket

Something along those lines shouldn't be mutually-exclusive with the current proposal, local reasoning being sufficient. Something like 'final' or 'const' (or, better still, replacing the 'let' keyword with 'val' and 'var' as in Scala.)



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

Search: