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
[Caml-list] Feature request.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@l...>
Subject: Re: [Caml-list] Feature request.

Lukasz Lew writes:
 >   I found that it would be usefull if some of the language constructions 
 >   could be made localy. For example "open ... in" or "type ... in".
 >   Why "open in" isn't in standard parser?
 >   Why some constructions are restricted to global (module) use?

Be aware that it may easily lead to scope issues.

In SML, there used to be  local exceptions (exception E in ...) and it
was breaking type soundness, since an exception could obviously escape
the scope  of its declaration (unless  the compiler is  doing a static
analysis over exceptions possibly  raised, difficult yet feasible, but
SML was not).

I guess  that with a  "type ... in"  construct, a type  could probably
escape its scope the same  way, leading to serious issues in assigning
legal types to expressions.

Just a guess...	

Jean-Christophe Filliātre (

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: