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
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: 2007-02-22 (00:25)
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