Re: [Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-18 Thread Derek Elkins
On Sat, 2008-05-17 at 20:51 +0100, Sebastian Sylvan wrote: > > > 2008/5/17 Kaveh Shahbazian <[EMAIL PROTECTED]>: > I have question on mapping some Haskell concepts to C# 3 ones. > Maybe there are not any strict equivalents; yet it helps: > > 1 - What is the equiva

Re: [Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-18 Thread Jon Harrop
On Sunday 18 May 2008 16:33:56 Luke Palmer wrote: > Scala is very much like C#, but gets this point right, FWIW. Only for certain types, IIRC. Scala was broken with respect to bools the last time I looked. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e

Re: [Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-18 Thread Luke Palmer
2008/5/17 Kaveh Shahbazian <[EMAIL PROTECTED]>: > 3 - What is the logical implementation of pattern matching in C#? (For > example using structures with indicator fields or using interfaces and > inheritance and dynamically dispatch in calling overloaded methods. Also > this question contain a hidd

Re: [Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-18 Thread Brandon S. Allbery KF8NH
On 2008 May 18, at 9:59, Kaveh Shahbazian wrote: For something like: type Thing a b = ThisWay a | ThatWay b | NoWay actually there is no equivalents for data constructor I presume you mean "data" instead of "type". Not that I can address your question directly, as I don't know C#. In C i

Re: [Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-18 Thread Kaveh Shahbazian
Hi (I did not received your message in my mail box and I have seen it on mailing list. I dot know why this happened (?).) /* Maybe I am misguessing why you are asking your question, but wouldn't it be better to ask how to map these Haskell concepts to CLR? If so, check out work on Mondrian. *

[Haskell-cafe] Mapping Haskell Concepts to C# 3

2008-05-18 Thread Galchin, Vasili
Kaveh, Maybe I am misguessing why you are asking your question, but wouldn't it be better to ask how to map these Haskell concepts to CLR? If so, check out work on Mondrian. Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.

Re: [Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-17 Thread Sebastian Sylvan
2008/5/17 Kaveh Shahbazian <[EMAIL PROTECTED]>: > I have question on mapping some Haskell concepts to C# 3 ones. Maybe there > are not any strict equivalents; yet it helps: > > 1 - What is the equivalent of "Type Constructor" in C#? Class declaration. Generic ones. E.g. List, is a type where the

[Haskell-cafe] Mapping Haskell Concepts To C# 3

2008-05-17 Thread Kaveh Shahbazian
I have question on mapping some Haskell concepts to C# 3 ones. Maybe there are not any strict equivalents; yet it helps: 1 - What is the equivalent of "Type Constructor" in C#? 2 - What is the equivalent of "Data Constructor" in C#? 3 - What is the logical implementation of pattern matching in C#?