News for hackers. Stuff that matters.
Re:Dave Herman’s contributions to Rust by Ar-Curunir on Monday May 03, 2021 @12:12PM (#27026897)
The hamming distance between val and var is tiny; easy to miss in a code review.
Re:Dave Herman’s contributions to Rust by MrBuddyCasino on Tuesday May 04, 2021 @08:32AM (#27036864)
When assigning to val more than once: in a statically checked language the compiler will complain, and devs default to 'val' anyway. In a dynamic language you'd quickly get a runtime error.

Using 'var' instead of 'val' where possible: the compiler/linter will tell you this.

Or do you mean something else?