2782Re: "ocaml_beginners":: Re: 'ocaml_beginners':: Execution semantics
- Nov 11, 2004On Tue, 9 Nov 2004 19:57:38 +0000, Alwyn <dt015a1979@...> wrote:
> I have another question: In Standard ML and Haskell, constructors canWell, in the 3 said language, construcor are mainly tag that are put
> be used as functions. Why is this not the case in CAML?
in the header of the object, and type declaration for type safety.
Then one can decide to define a function to build such a value. But it
is not automatic. So ocaml choose to not do it, while the two other
said language do. It is a design decision, there is no real good
reason against it (At least in my knowledge)
- << Previous post in topic