Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [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: artboreb@n...
Subject: RE: [Caml-list] Why are type functions postfix?
tim@fungible.com (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?
>
In the revised syntax (Camlp4) that is:

value x : ref int = ref 3; (* ref prefixed on both sides *)

Regards
Arturo Borquez
 


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

-------------------
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