3 ms·
> Or you'd need to use the latter form and do lookups by mnames[mon - 1] instead of mnames[mon]. All of which should be hidden behind your API anyway. It was a
by jdmichal 10y ago
> Or you'd need to use the latter form and do lookups by mnames[mon - 1] instead of mnames[mon].
All of which should be hidden behind your API anyway. It was a terrible choice, because it forces the client to deal with weird things just so that you can squeeze a single decrement out of your code.