3 ms·
If someone adds functionality to a type so the name isn't really applicable anymore I don't think the build catches that.
by JamesBarney 7y ago
If someone adds functionality to a type so the name isn't really applicable anymore I don't think the build catches that.
- lmm 7y agoAs soon as you form something that should conform to the type (according to its name) and find that it doesn't, you notice the problem, and then you fix it once and for all (because the type is defined in one place). So yes, you can have misleading type names in the codebase, but there's a natural pressure to correct them, in a way that there largely isn't for misleading comments.