Commit c98487ad authored by POTTIER Francois's avatar POTTIER Francois

Comments.

parent 1c919cc7
...@@ -33,20 +33,21 @@ type ('bn, 't, 'u) telescope = ...@@ -33,20 +33,21 @@ type ('bn, 't, 'u) telescope =
where the environment is enriched. *) where the environment is enriched. *)
(* These classes do not know the type of the environment, and do not know how (* These classes do not know the type of the environment, and do not know how
it is enriched; the latter task is delegated to virtual methods, such as it is enriched or looked up; the latter task is delegated to the virtual
[extend] and [restrict]. The implementation of these methods is provided methods [extend] and [lookup]. The implementation of these methods is
by separate ``kits''. *) provided by separate ``kits''. *)
(* We need one class per variety of visitor, which is a bit painful. *) (* We need several varieties of visitor, which is a bit painful. As of now,
[iter], [map], [endo], [iter2] are required: see [ToolboxInput]. *)
(* The method [visit_abs] is polymorphic in the type of terms. This is (* The method [visit_abs] is polymorphic in the type of terms. This is
important, as it means that one can use several instances of [abs] in a important, as it means that one can use several instances of [abs] in a
single type definition and still be able to construct well-typed single type definition and still be able to construct well-typed
visitors. *) visitors. *)
(* The virtual methods [extend] and [restrict] are not polymorphic in the (* The virtual methods [extend] and [lookup] are not polymorphic in the types
types of bound names and environments. On the contrary, each kit comes of bound names and environments. On the contrary, each kit comes with
with certain specific types of bound names and environments. *) certain specific types of bound names and environments. *)
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment