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 ratmice

7 hours ago

Presumably since this language isn't C they can define it however they want to, for instance in rust std::i32::MIN.wrapping_sub(1) is a perfectly valid number.

2 comments

ratmice

Reply

xigoi  6 hours ago

Nim (the original one, not Nimony) compiles to C, so making basic types work differently from C would involve major performance costs.

  • beagle3  1 hour ago

    And yet, Nim does overflow checking by default.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities