Version française
Home     About     Download     Resources     Contact us    
Browse thread
replacing Mathematica was: Polymorphic pretty printing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <debian00@t...>
Subject: Re: [Caml-list] Re: replacing Mathematica was: Polymorphic pretty printing
On Thu, 28 Oct 2004, Jon Harrop <jon@jdh30.plus.com> wrote:
> 
> However, in GCaml, do the different definitions (e.g. "+" : int ->
> int -> int | float -> float -> float) have to be specified at the
> same time (i.e. in the "+" function)? If so, then GCaml is also ill
> suited...

The future of GCaml is not clear but I hope that "additions" to a
generic definitions.  Maybe with

generic (+) =
| float -> float -> float => (+.)
| $a -> $a -> $a => (+) (* old + *)

ChriS