Should classes be nominally or structurally typed?
samuelgoto opened this issue · 1 comments
samuelgoto commented
erights commented
instanceof
is definitely a nominal-like test, not a structural-like one.
Btw, somewhere I heard the following hilarious observation:
Nominal types are about class names. Structural types are about method names.