Re: [rust-dev] Integer overflow, round -2147483648

2014-06-24 Thread Lars Bergstrom
On Jun 23, 2014, at 7:16 PM, John Regehr reg...@cs.utah.edu wrote: I do think Rust should exposed either `checked { }` or operators for checked arithmetic along with an opt-in lint to deny the unchecked operators. You can opt-out of a lint for a function/impl/module after opting into it at

Re: [rust-dev] Let’s avoid having both foo() and foo_opt()

2013-12-24 Thread Lars Bergstrom
On Dec 23, 2013, at 11:23 AM, Patrick Walton pcwal...@mozilla.com wrote: On 12/23/13 4:12 AM, Gábor Lehel wrote: I don't like either that (a) the possible failure is silent, and refutable lets look the same as irrefutable ones, nor (b) baking fail!() into the semantics. Haskell has these