On 24/06/14 01:22 AM, comex wrote: > On Tue, Jun 24, 2014 at 1:17 AM, Jerry Morrison <jhm...@gmail.com> wrote: >> Does `checked { }` mean all functions within that scope use checked-integer >> arithmetic? This sounds great to me. > > Bikeshed: If this happens there should also be a module-level > attribute alternative to avoid unnecessary indentation.
I think it would actually work best as a lint-like attribute you could apply at any item level or to a block. It would flip the behaviour of the operators for that scope, and you could override it any number of times in inner scopes.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev