News for hackers. Stuff that matters.
Re:Why Operators Are Useful by wool_gather on Saturday March 16, 2019 @11:50AM (#19408373)
> even for dict, it's just a matter or reading from the left to the right.

How's that? There's no defined "left to right" for a dict.

Re:Why Operators Are Useful by DangitBobby on Saturday March 16, 2019 @01:01PM (#19408803)
Vales of keys in the left operand are overwritten by values of keys in the right operand.
Re:Why Operators Are Useful by reallydude on Saturday March 16, 2019 @02:32PM (#19409355)
Thats not obvious and breaks a commutative property. This observation about operators seemed poorly crafted to support a decision he already made. The existing example was unnecessarily complicated...most languages just do a singular function with a return val. Why be obtuse in the example? Preconceived agenda. The operator isnt compelling for dicts/hashmaps in any language.
Re:Why Operators Are Useful by ivanbakel on Saturday March 16, 2019 @03:52PM (#19409833)
Lots of operators are non-commutative. You can't "break" a commutative property that doesn't exist because the operator is not yet defined.
Re:Why Operators Are Useful by reallydude on Sunday March 17, 2019 @12:22AM (#19412225)
> You can't "break" a commutative property that doesn't exist because the operator is not yet defined.

That's the point (eg modulus). There's an entire preamble that's not relevant to the decision. The coverage of the inane "insights" is some hero worship hype.