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: Irrelevant variables in patterns
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <cr@d...>
Subject: Irrelevant variables in patterns

> Superfluous warning confuse the programmer, and cause him to disregard
> the warnings completely.  Which can cause him real pain when it was a
> warning that he should have heeded.

I strongly disagree with this statement. If you get a lot of warning, it means
you have a particular style of programming (for instance catching all
exceptions in most of the handler). Then what you really needs is a compiler
option to discard a particular warning (or class or warning) so you only get
the warnings which are relevant to you programming style.