4 ms·
As an extension to this, strong typing is a gateway drug to generics. Strong typing really shines when you have generics, saving bugs at one level above basic
by leroman 3y ago
As an extension to this, strong typing is a gateway drug to generics.
Strong typing really shines when you have generics, saving bugs at one level above basic types..
- hospitalJail 3y agoYou got me to look up 'generics'. I like the idea, feels very pythonic ironically. And I suppose if you don't want the generic, I imagine there is probably some subclass of that which is more restrictive. Anyway, as a developer I love when people do this. As a developer this sounds like a nightmare to maintain. My coworkers have told me to limit the numbers of 'what ifs' and just roll with it.
- leroman 3y agoYou can think of generics a meta-language that restricts and documents some behavior one level above the concrete types that you might need.. Lots of benefits, code re-use, documentation as code, less bugs.. Granted it's not always easy and straight forward but that what senior developers in the team are for..
- marcosdumay 3y ago> feels very pythonic ironically. Look at duck typing.