3 ms·
Then you'd have no way to differentiate between declaration and assignment, and have all the problems that brings. Hello, Python :)
by amedvednikov 6y ago
Then you'd have no way to differentiate between declaration and assignment, and have all the problems that brings. Hello, Python :)
- layer8 6y agoI’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.)