Browse thread
Smells like duck-typing
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Robert Fischer <robert@f...> |
| Subject: | Re: [Caml-list] Smells like duck-typing |
> You don't invent them, they exist. I can't agree to dismiss this > suggestion without further thought. It might end up being > non-sensical, maybe not. It merely suggests a way, to derive new > values, whose type happen to be a supertype of the original one. Why > not ? It may be considered to the Haskell-like "derive" feature, and > such. It is just a way to build new values out of known one. > Formally, can you explain what you're looking for here, and how it's not congruent with inheritance? ~~ Robert.