Hello to everybody
I am an new user of Haskel and generally in functional programming and I could
say that I am very impressed from this Language. Though I can't understand the
use of datatypes.
Let's take a firly simple situtation
e.g. data Pair a b = Pair a b
i.e. an new type with name Pair
On Feb 9, 2008, at 19:09 , Mattes Simeon wrote:
e.g. data Pair a b = Pair a b
struct Pair { a pair_a; b pair_b; };
data Either a b = Left a | Right b
union Either { enum { Left, Right } _tag; a either_left; b
either_right; };
(except that Haskell makes sure you use it properly, while C
On Feb 10, 2008 12:09 AM, Mattes Simeon [EMAIL PROTECTED] wrote:
Hello to everybody
I am an new user of Haskel and generally in functional programming and I
could
say that I am very impressed from this Language. Though I can't understand
the
use of datatypes.
Let's take a firly simple