Browse thread
[Caml-list] Feature request.
-
Lukasz Lew
- tim@f...
- Jean-Christophe Filliatre
- Alain.Frisch@e...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 (http://www.lri.fr/~filliatr) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners