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: -- (:)
From: Vitaly Lugovsky <vsl@o...>
Subject: Re: [Caml-list] Why are type functions postfix?
On Mon, 12 Aug 2002, Tim Freeman wrote:

> In OCAML and other ML dialects I've used, you say:
>    let x: int ref = ref 3
> Is there any reason that type functions like the first "ref" are
> postfix, unlike function application like the second "ref" that is
> prefix?
> If it's just history and there's no good reason, that's fine by me.
> I'm just curious.

 It's not a function at all - it's just a constraint.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: