News for hackers. Stuff that matters.
Re:Rust for C++ programmers – part 3: primitive types and op... by xioxox on Wednesday April 23, 2014 @03:45PM (#7636431)
I'm not familiar with the bounds checks in rust, so that sounds a bit more reassuring. However, I could imagine logic errors if people assume they have a certain size, but they don't, as I assume you don't trap wrapping and so on.

If they're intended for indexing arrays, I would have given then a name to reflect that, and discouraged people from mixing them with normal integers for doing arithmetic with. Perhaps forcing people to convert integers to array indices would be good. I try to use size_t and friends when programming C++.

There are no comments on this comment yet.