2 ms·
To be fair, if you're writing in a language with a shitty type system, encoding types into names isn't horrible. For things like units of measurement, like dist
by MichaelGG 11y ago
To be fair, if you're writing in a language with a shitty type system, encoding types into names isn't horrible. For things like units of measurement, like distinguishing int32[seconds] from int32[ticks] it's pretty useful.
It's only the dumb use, where you repeat the type name as part of the variable that such notation gets deserved derision.
If MS had been a bit more forward thinking, they'd have come up with a language, or extended C/C++, to be able to enforce all that notation via the type, killing the need for special notation.
- phamilton 11y agoF# does a decent job with ADTs.