caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Delahaye <delahaye@jurancon.inria.fr>
To: caml-list@inria.fr
Subject: Filename.chop_suffix
Date: Fri, 8 May 1998 22:52:50 +0200 (MET DST)	[thread overview]
Message-ID: <199805082052.WAA02976@jurancon.inria.fr> (raw)

    Bonsoir,

    Je suis tombe, par hasard, sur une phrase du manuel d'ocaml en ligne qui
m'a un peu interpelle (dans Filename):

> val chop_suffix : string -> string -> string
> 
>      chop_suffix name suff removes the suffix suff from the filename name. The
>      behavior is undefined if name does not end with the suffix suff. 

    Cela ressemble fortement a un trou semantique. Pourquoi ne pas lever tout
simplement une exception qui caracteriserait entierement le comportement de
cette fonction?

    Amicalement.

    David.

===============================================================================
David Delahaye                                 <Email>: David.Delahaye@inria.fr
<Laboratory>: The Coq Project                                  <Domain>: Proofs
<Adress>: INRIA-Rocquencourt Domaine de Voluceau BP105 78153 Le Chesnay Cedex
          FRANCE
<Tel>: (33)-(0)1 39 63 57 53
<Fax>: (33)-(0)1 39 63 56 84
<Url>: http://pauillac.inria.fr/~delahaye
===============================================================================

[If you have time to waste, you can have a look on my proof that all the real
 number are positive. Given x in R:

   x^2>=0                 (well-known result)
   (x^2)^(1/2)>=(0)^(1/2) (use of power on each member)
   x^(2*1/2)>=0           (use of the propertie: (x^n)^m=x^(n*m)
   x^1>=0                 (very easy simplification) 
   x>=0                   (great!)]







                 reply	other threads:[~1998-05-11  9:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805082052.WAA02976@jurancon.inria.fr \
    --to=delahaye@jurancon.inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).