Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: arity of type constructors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hubert Canon <Hubert.Canon@i...>
Subject: Re: arity of type constructors
> # type t = T of int * int;;
> type t = | T of int * int
> # T(3,4);;

I do not understand why we don't use another syntax for constructors :

If we had something like :
# T 3 4;;
- : t = (T 3 4)

it would be less confusing.

-- 
Hubert Canon