Re: Re: Overloaded functions in Ocaml?

"'Mr. Herr' [email protected] [ocaml_beginners]" <[email protected]> Fri, 4 Mar 2016 10:28:21 +0100
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>

On 03.03.2016 20:42, [email protected] [ocaml_beginners] wrote:
>  
>
> >"overloaded" functions means function takes arguments of different types and even
> >different arity. This is precisely what OCaml does not have.
>
>   This is not quite true, for Ocaml does allow  functions used with different
> arities in a limited way, via optional arguments.
>  (Personally I never understood the point of optional arguments in OCaml, I find
> they make the type analysis more complicated and I never use them).
>
>
Oh, yes, I forgot optional arguments. I wonder how this is implemented, since
basically every function in ocaml takes exactly one argument in OCaml,
following the lambda calculus closely.

/Str.
>
>