Version française
Home     About     Download     Resources     Contact us    
Browse thread
let int = ?([' ' '\t'] '-') digits+
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Re: let int = ?([' ' '\t'] '-') digits+
On Friday 29 June 2007 19:11:23 Robert C Fischer wrote:
> Syntax polymorphism violates the principle of least surprise.  It is,
> indeed, Teh Eevil.

The designers of OCaml clearly disagreed when they went out of their way to 
remove superfluous parentheses:

  [1, 2]

I am taking the idea further, AFAICT.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e