From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B52BCBC0A for ; Tue, 19 Jun 2007 21:29:55 +0200 (CEST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5JJTsZX021282 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 19 Jun 2007 21:29:55 +0200 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay02.plus.net with esmtp (Exim) id 1I0jOk-0007Pd-9y for caml-list@yquem.inria.fr; Tue, 19 Jun 2007 20:29:54 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Data structures and CPS Date: Tue, 19 Jun 2007 20:23:55 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706192023.55268.jon@ffconsultancy.com> X-Miltered: at discorde with ID 46782EB2.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; hashtbl:01 functorize:01 low-level:01 trade-offs:01 hashtbl:01 non-trivial:01 ocaml:01 ocaml:01 frog:98 data:02 data:02 structures:02 structures:02 cps:02 passing:04 Just another comment on the topic of data structures. I think it would be nice if Hashtbl and Map provided a compatible sub-API written in continuation passing style so that application writers can functorize their code over the low-level implementation that is used. The trade-offs involved in choosing between Hashtbl and Map are non-trivial and it would be nice if unsure programmers could adopt a style that made it easy to switch between data structures. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e