English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
How to do this properly with OCaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-07-23 (21:36)
From: Michael Alexander Hamburg <hamburg@f...>
Subject: Re: [Caml-list] Re: How to do this properly with OCaml?
Yes.  But if I wanted to link in Extlib, I would just use the dynamic arrays
that it offers.

I'd rather minimize the number of dependencies, and so far I haven't needed
anything from Extlib other than dynamic arrays and a few convenience functions
that are easily recreated.

I think I'll just use options, the heap code isn't that long.

Mike Hamburg

Quoting Bardur Arantsson <spam@scientician.net>:

> Michael Alexander Hamburg wrote:
> > Ouch.
> >
> > I bow to your superior experience.
> >
> > Is there a syntax which makes treatment of options easy?  That is, if
> > about every other line of my library is an action on objects from this
> > array, is there a convenient way to use options without cluttering up the
> > code?
> Well, not sure if it's exactly what you're looking for, but ExtLib has
> an Option module which contains various convenience functions for
> working with option values. See
>       http://ocaml-lib.sourceforge.net/doc/Option.html
> Cheers,
> --
> Bardur Arantsson
> <bardur@imada.sdu.dk>
> <bardur@scientician.net>
> In anticipation, John licked his own lips.
>                          A. Lloyd, http://adamcadre.ac/lyttle.html
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs