D and Nim
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jan 5 03:01:50 PST 2015
Ary Borenszweig:
> Are there proofs of percentage of bugs caused by incorrectly
> mutating variables that were supposed to be immutable?
I don't know, probably not, but the progress in language design
is still in its pre-quantitative phase (note: I think Rust
variables are constant by default, and mutable on request with
"mut").
It's not just a matter of bugs, it's also a matter of making the
code simpler to better/faster understand what a function is doing
and how.
> I don't remember having such bug in my life.
Perhaps you are very good, but a language like D must be designed
for more common programmers like Kenji Hara, Andrei Alexandrescu,
or Raymond Hettinger.
Bye,
bearophile
More information about the Digitalmars-d
mailing list