Aktuelle Änderungen Printable View Änderungen Bearbeiten
JVM > Java > WhitespaceInPython > ModelViewController > LatentTypingClear TrailSomething is latent if it is present but not visible. So latent typing has usually been used to describe situations where something has a type, but that type is not explicitly called out in the source code.[1]
As I pointed out yesterday, when you use a latent typing mechanism (the core concept in a true implementation of generics), the type is still there, it's just implied. So on a very simple level, you could look at it as a device that writes interfaces for you, so that you don't have to. It's an enabling device that reduces the amount of code you have to write.
"I don't care what type I'm using here as long as it has these methods."[2]
latent typing rarely implies exactly what the target type should provide, it merely imposes constraints