On Fri, Jan 10, 2014 at 9:15 PM, Lee Braiden <[email protected]> wrote:

>
> http://blog.irukado.org/2014/01/an-appeal-for-correct-capable-future-proof-math-in-nascent-programming-languages/
>

Just wanted to mention that Swift's approach seems interesting here: by
default check for overflow consider it an error if it happened, but also
provide special operators that give you normal overflow semantics when you
need performance: &+, &-, &*, &/ and &%

https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/swift_programming_language/AdvancedOperators.html#//apple_ref/doc/uid/TP40014097-CH27-XID_37

-- 
Tony Arcieri
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to