Re: Protocols

2003-07-19 Thread Sean O'Rourke
On 19 Jul 2003, Luke Palmer wrote: > [1] It would be totally cool to use a Haskell- or ML-style type > inference system, but those things just don't work in procedural > languages. Could you clarify what you mean by "don't work" here? ML has both assignment and type inference, so it seems like it

Re: Protocols

2003-07-19 Thread Steffen Müller
Luke Palmer wrote: [...] [1] It would be totally cool to use a Haskell- or ML-style type inference system, but those things just don't work in procedural languages. And they're very slow when not done at compile-time. Try a Haskell interpreter like hugs vs. a Haskell compiler like ghc. Steffen --

Protocols

2003-07-19 Thread Luke Palmer
I've been looking around Objective-C a bit, and I would like to turn over an old rock. Remember when I suggested that (static) type equivalence should be based on interface equivalence? Objective-C seems to feel the same way. It calls an interface a I, and specifying it is optional. This maps n