4 ms·
I mean, you can do this, but it will still get automatically typed as a u8, which could very easily cause confusion for Python devs who really want to push that
by smoldesu 6y ago
I mean, you can do this, but it will still get automatically typed as a u8, which could very easily cause confusion for Python devs who really want to push that value past 255. My bigger point (and likely the authors) was that Rusts integers aren't like Java's ints or Python's bigints. Your laziness in that example is still being penalized, it's just harder to see and therefore, less "correct".
- tux3 6y agoFYI the default is i32, not u8.
- deleted 6y ago[deleted]