Version française
Home     About     Download     Resources     Contact us    
Browse thread
[OSR] Exceptionless error management, take 2
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: tab@s...
Subject: Re: [Caml-list] [OSR] Exceptionless error management, take 2
On Fri, Feb 08, 2008 at 12:17:29AM +0900, Jacques Garrigue wrote:
> Polymorphic variants allow to check exhaustiveness... as long as you
> use exhaustive pattern matching (i.e. no wildcard, exactly like for
> normal variants.)

well, and "normal" variants allow to check exhaustiveness too in ALL case.
so what's the point in using polymorphics variant then ?

> And they _cannot_ pollute any namespace, since they define nothing.

did you actually read my previous reply ?
they "pollute" since the polymorphic variant namespace is flat, and
don't interact with module (on purpose obviously)

-- 
Vincent Hanquez