3 ms·
The funny way I’ve seen this go wrong in practice is a typo like: // we don’t want more than 100m because … quota = 1000_000_000 Where people assume the u
by dan-robertson 4y ago
The funny way I’ve seen this go wrong in practice is a typo like:
// we don’t want more than 100m because …
quota = 1000_000_000
Where people assume the underscores are in the expected place.
- dunham 4y agoThis is why I like the underscores, it's easier for me to see the typo in: quota = 1000_000_000 than it is in: quota = 1000000000 And also when I'm typing the number, it's easier for me to be sure I got it right when I can count the zeros in groups of three. It's rare that I've needed this, but I've used it in Java a few times in my career.