3 ms·
Unfortunately even though this was called out as a mistake in 1982, much more modern languages (e.g. C#) are still copying it. As painful as breaking changes m
by ynik 3y ago
Unfortunately even though this was called out as a mistake in 1982, much more modern languages (e.g. C#) are still copying it.
As painful as breaking changes might be, they beat the alternative of dealing with a bad design indefinitely. At least in more modern languages, the type checker usually catches the mistakes caused by this design mistake.
- kibwen 3y ago> much more modern languages (e.g. C#) are still copying it Fortunately Go, Rust, and Swift all chose to defy C and fix the precedence of &, which I expect sets enough of a precedence (heh) for every language for the rest of human history to get it right.
- wiseowise 3y agoPython also fixed it.