From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA04859; Fri, 28 May 2004 19:50:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA05438 for ; Fri, 28 May 2004 19:50:07 +0200 (MET DST) Received: from qrnik.knm.org.pl (paf87.warszawa.sdi.tpnet.pl [217.96.225.87]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4SHo5SH016992 for ; Fri, 28 May 2004 19:50:06 +0200 Received: from qrnik ([192.168.0.1] ident=qrczak) by qrnik.knm.org.pl with esmtp (Exim 3.36 #1) id 1BTlUM-0004Cb-00; Fri, 28 May 2004 19:49:51 +0200 Subject: Re: [Caml-list] unix.chop_extension From: "Marcin 'Qrczak' Kowalczyk" To: brogoff Cc: Keith Wansbrough , caml-list@inria.fr In-Reply-To: References: Content-Type: text/plain; charset=iso-8859-2 Message-Id: <1085766590.8335.15.camel@qrnik> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.5.7 Date: Fri, 28 May 2004 19:49:50 +0200 Content-Transfer-Encoding: quoted-printable X-Miltered: at concorde with ID 40B77BCD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 chop:01 marcin:01 'qrczak':01 kowalczyk:01 qrczak:01 brogoff:01 predicate:01 marcin:01 kowalczyk:01 qrczak:01 0700,:01 knm:01 knm:01 match:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk W li=B6cie z pi=B1, 28-05-2004, godz. 09:43 -0700, brogoff napisa=B3: > Point taken. There's still a lot of "out of band" values that could be us= ed to > represent failure, such as substrings with negative indices. I don't think this is a good idea, precisely because it's an "in band" encoding. Match failure should be indicated either by None instead of Some whatever, or by a predicate on the whole match object, or with an exception - but not with a special substring. --=20 __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners