RE: [Haskell-cafe] RE: Modelling Java Interfaces with Existential data types

2004-06-11 Thread Mike Aizatsky
Andre, Thanks for paper pointers. Hmm, what's the higher goal of what you're trying to achieve? I, like you, came from a background of object-oriented programming, and I've always managed to avoid making a list containing more than one type after re-thinking about the problem. You can do

Re: [Haskell-cafe] RE: Modelling Java Interfaces with Existential data types

2004-06-10 Thread MR K P SCHUPKE
interested in how to (ab?)use type classes Surely there's no such thing as abuse of a language feature in a language with formal semantics! Keean. ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] RE: Modelling Java Interfaces with Existential data types

2004-06-09 Thread Mike Aizatsky
Ralf, thanks for your time to look into the HList paper. It's quite good. It reminds me the quirks Alexandrescu does in his Modern C++ Design or here http://osl.iu.edu/~tveldhui/papers/Template-Metaprograms/meta-art.html . Since type system allows implementation of natural arithmetic, do you

Re: [Haskell-cafe] RE: Modelling Java Interfaces with Existential data types

2004-06-09 Thread Ralf Laemmel
Mike Aizatsky wrote: It's quite good. It reminds me the quirks Alexandrescu does in his Modern C++ Design or here http://osl.iu.edu/~tveldhui/papers/Template-Metaprograms/meta-art.html . Since type system allows implementation of natural arithmetic, do you know, is it Turing-complete? Yes, C.

Re: [Haskell-cafe] RE: Modelling Java Interfaces with Existential data types

2004-06-09 Thread André Pang
On 10/06/2004, at 3:29 AM, Mike Aizatsky wrote: thanks for your time to look into the HList paper. It's quite good. It reminds me the quirks Alexandrescu does in his Modern C++ Design or here http://osl.iu.edu/~tveldhui/papers/Template-Metaprograms/meta-art.html . Since type system allows

[Haskell-cafe] Re: Modelling Java Interfaces with Existential data types

2004-06-08 Thread Ralf Laemmel
Hi Mike, Let's redirect to Haskell cafe. http://www.mail-archive.com/glasgow-haskell-users%40haskell.org/msg06288.html http://www.mail-archive.com/glasgow-haskell-users%40haskell.org/msg06289.html thanks for your time to look into the HList paper. 1. It looks like your HList is basically a