Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Pierpaolo Bernardi <bernardp@cli.di.unipi.it>
To: Markus Mottl <mottl@miss.wu-wien.ac.at>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: Okasaki's "Purely Functional Data Structures" translated to
Date: Fri, 22 Jan 1999 12:34:00 +0100 (MET)	[thread overview]
Message-ID: <Pine.GSO.4.00.9901221221440.463-100000@carlotta.cli.di.unipi.it> (raw)
In-Reply-To: <199901211455.PAA32009@miss.wu-wien.ac.at>



On Thu, 21 Jan 1999, Markus Mottl wrote:

> Although this implementation seems to be quite perfect, I have allowed
> myself to make some very small changes, so that it can be immediately
> used as a module and fits better to the way modules are implemented in
> the standard library.

Good.

> The following changes should be noted:

>   * The type of these lists is not "ralist" anymore in the module but
>     "t". This corresponds to the way this is handled in the standard
>     modules.

Rigth. 

>   * A somewhat bigger change: the type of the list is not:
> 
>       type 'a ralist = Nil | Root of int * 'a tree * 'a ralist
> 
>     but now:
> 
>       type 'a t    = (int * 'a tree) list
> 
>     I think that new users will understand details of implementation
>     easier with this change. It also comes closer to Okasaki's version.

Okasaki in his paper on RALs presents both versions.  The one I
used is faster for Ocaml, so I suggest that you use the version I sent.
Users should use the book or the paper to understand details.

>   * The rest of the changes concern mainly layout (hardly noticable).

De gustibus...  8-)

Cheers,
Pierpaolo





       reply	other threads:[~1999-01-22 17:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199901211455.PAA32009@miss.wu-wien.ac.at>
1999-01-22 11:34 ` Pierpaolo Bernardi [this message]
1999-01-23 17:56   ` Markus Mottl
     [not found] <Pine.GSO.4.00.9901191822100.8220-100000@carlotta.cli.di.unipi.it>
1999-01-20  0:34 ` Markus Mottl
1999-01-20 17:06   ` Pierpaolo Bernardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.00.9901221221440.463-100000@carlotta.cli.di.unipi.it \
    --to=bernardp@cli.di.unipi.it \
    --cc=caml-list@inria.fr \
    --cc=mottl@miss.wu-wien.ac.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox