Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Why are type functions postfix?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Why are type functions postfix?
> Is it not because in the type notation, int ref is similar to int list,
> while in the function application, ref 3 is similar to a constructor
> application like Some 3 for example ?

Yes, of course.  But the original question was: all function or data
constructor applications (in expressions) are prefix, while type
constructor applications (in type expressions) are postfix; why?
Answer: ask Robin Milner :-)

- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners