From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 996C7BB91 for ; Sat, 23 Jul 2005 23:36:28 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6NLaSUo024205 for ; Sat, 23 Jul 2005 23:36:28 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA20089 for ; Sat, 23 Jul 2005 23:36:27 +0200 (MET DST) Received: from us25.unix.fas.harvard.edu ([140.247.35.201]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6NLa6Oi024177 for ; Sat, 23 Jul 2005 23:36:27 +0200 Received: from localhost (us28.unix.fas.harvard.edu [140.247.35.248]) by us25.unix.fas.harvard.edu (8.12.11/8.12.11) with ESMTP id j6NLZeDb027909; Sat, 23 Jul 2005 17:35:44 -0400 Received: from tide533.microsoft.com (tide533.microsoft.com [131.107.0.103]) by webmail.fas.harvard.edu (IMP) with HTTP for ; Sat, 23 Jul 2005 17:35:40 -0400 Message-ID: <1122154540.42e2b82c4dc40@webmail.fas.harvard.edu> Date: Sat, 23 Jul 2005 17:35:40 -0400 From: Michael Alexander Hamburg To: Bardur Arantsson Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: How to do this properly with OCaml? References: <42E2393B.5030209@inria.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 131.107.0.103 X-Miltered: at nez-perce with ID 42E2B85C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42E2B846.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 arrays:01 dependencies:01 arrays:01 heap:01 quoting:01 syntax:01 cheers:01 sdu:01 caml-list:01 beginner's:01 ocaml:01 beginners:01 bug:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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 : > 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 > > > > 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 >