Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by pca006132

3 years ago

I think Rust doesn't allow integer overflow either, unless you specifically use the wrapping_* operations. Probably the same kind of thing will also happen to Rust.

2 comments

pca006132

Reply

masklinn  3 years ago

Rust either allows or traps on integer overflow depending on the mode. Either way it’s defined behaviour.

  • pca006132  3 years ago

    Ah, I forgot that it is also defined in release mode, but just considered undesirable.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities