Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "<Brad Knotwell" <knotwell@f5.com>
To: Gerd.Stolpmann@darmstadt.netsurf.de
Cc: knotwell@f5.com, caml-list@inria.fr
Subject: Re: small code problem
Date: Thu, 8 Jul 1999 17:27:45 -0700 (PDT)	[thread overview]
Message-ID: <14213.16897.231203.976296@knotwell.f5.com> (raw)
In-Reply-To: <99070901192505.28040@schneemann>

Gerd Stolpmann writes:
 > This solution avoids that Invalid_argument must be caught which is better
 > style. It is almost always a bad idea to trap Invalid_argument, 
 > Out_of_memory, Stack_overflow, and Division_by_zero, as these exceptions
 > are thought as last resort that indicates a bad system state that must
 > not happen but happened. It is better to design the program such that
 > it never runs into conditions that raise these exceptions, and if they
 > happen nevertheless, you missed something.

He Gerd--

This is a serious question (not an argumentative one).  How do I avoid 
Invalid_argument when I'm expecting the user to enter a filename on
the command-line?  Or are you just talking in general?

--Brad (who's wondering if he's missed the forest for the trees)

 > 
 > Gerd




  reply	other threads:[~1999-07-09  1:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-02 22:30 <Brad Knotwell
1999-07-08  4:56 ` Markus Mottl
1999-07-08 22:49 ` Gerd Stolpmann
1999-07-09  0:27   ` <Brad Knotwell [this message]
1999-07-09  1:37     ` Fabrice Le Fessant
1999-07-08 18:23 Damien Doligez
     [not found] <199907090927.KAA09195@toy.william.bogus>
1999-07-09 13:56 ` Gerd Stolpmann
1999-07-11 19:23   ` Markus Mottl

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=14213.16897.231203.976296@knotwell.f5.com \
    --to=knotwell@f5.com \
    --cc=Gerd.Stolpmann@darmstadt.netsurf.de \
    --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