Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocaml compiler features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Hurt <bhurt@j...>
Subject: Re: [Caml-list] Ocaml compiler features
Edgar Friendly wrote:

>I don't think this is as
>appropriate in ocaml because parens serve a second use: constructing
>tuples.  
>
parens aren't necessary for creating tuples, consider:
let f x y = x,y;;

Where they are necessary, it's generally to force an evaluation order.  
They're a good idea in general, but aren't *technically* necessary.

Brian