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

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.



> 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.


Python also fixed it.




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

Search: