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

Then you'd have no way to differentiate between declaration and assignment, and have all the problems that brings. Hello, Python :)


I’m aware of the trade-offs. :) I’d rather use a digraph operator for mutating assignment, again with the Huffman coding argument. One design I’m thinking of is using β€œ@” as the mutable qualifier (e.g. β€œ@int” is a mutable int), and correspondingly use β€œ@=” for mutating assignment. (The swirl in the β€œ@” glyph is meant to allude to mutation, and it’s a character that visually stands out in code, as mutation should.)




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

Search: