Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] warning on value shadowing
[ 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] warning on value shadowing
On Wednesday 21 February 2007 22:56, David Allsopp wrote:
> IMHO Pervasives is the only module that should be opened --- renaming a
> module with "module Foo = SomeVeryLongModuleNameYouDontWantToTypeLots" is
> better (makes clearer code) than "open ... ". But that's just another
> opinion...

I wish Printf was opened by default. I abhore the hideous verbosity of 
Print.fprintf "Hello world!". My fingers ache just thinking about it...

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists