DenkzeitWiki

Suchen:

Aktuelle Änderungen Printable View Änderungen Bearbeiten

JVM > Java > WhitespaceInPython > ModelViewController > LatentTypingClear Trail
Main /

Latent Typing

Templates
Generics

DuckTyping

Something 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

Edit - BackLinks - Tags - Page Hist - Print - Changes - Home - Orphans - Help

Zuletzt geändert am 06.07.2005 18:52 Uhr und seit 7. April 2005 1097 aufgerufen.