Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] unix.chop_extension
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-28 (17:50)
From: Marcin 'Qrczak' Kowalczyk <qrczak@k...>
Subject: Re: [Caml-list] unix.chop_extension
W li¶cie z pi±, 28-05-2004, godz. 09:43 -0700, brogoff napisa³:

> Point taken. There's still a lot of "out of band" values that could be used 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.

   __("<         Marcin Kowalczyk

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: