Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-08-23 (13:58)
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 Archives:
Bug reports: FAQ:
Beginner's list: