Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Orange_slice: Research Kernel and Hypervisor in Rust. Parent comment
It can prevent multiple types of data-races.
It has nullable-types as an option (I.e. not the default), and not checking for null is a type-error flagged by the compiler.
It has checked array-access, preventing out of bound reads.
It has immutability by default, preventing accidentally modifying data meant to stay constant.
Etc etc.
All of this together help creating higher quality, more secure code.
If you can have all those errors go away for “free”, why choose a language like C where all of these errors are possible?
There are no comments on this comment yet.
It can prevent multiple types of data-races.
It has nullable-types as an option (I.e. not the default), and not checking for null is a type-error flagged by the compiler.
It has checked array-access, preventing out of bound reads.
It has immutability by default, preventing accidentally modifying data meant to stay constant.
Etc etc.
All of this together help creating higher quality, more secure code.
If you can have all those errors go away for “free”, why choose a language like C where all of these errors are possible?