Reply to post: Re: Are you sure?

In Rust we trust: Shoring up Apache, ISRG ditches C, turns to wunderkind lang for new TLS crypto module

Anonymous Coward
Anonymous Coward

Re: Are you sure?

Rust doesn't even allow an integer variable to be assigned the value from a shorter integer variable -- an explicit cast is needed (even though the value can never be truncated or otherwise corrupted). Such an assignment is always benign, and is accepted without even a warning in C++ (as it is in C). I'm not aware of any case in which Rust allows a coercion implicitly that C++ wouldn't.

Why is this supposed to be a good thing. *even though the value can never be truncated or otherwise corrupted*

Oh sign me up, a finger wagging compiler enforced purity test.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon