unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Bill Schottstaedt" <bil@ccrma.Stanford.EDU>
To: bug-guile@gnu.org
Subject: (number? '1e311)
Date: Sat, 1 Nov 2008 07:22:11 -0700	[thread overview]
Message-ID: <20081101142047.M70127@ccrma.Stanford.EDU> (raw)

I think number? should not signal an error -- it should
return either #t or #f:

guile> (number? '1e310)
ERROR: In procedure string->number:
ERROR: Value out of range: 310
ABORT: (out-of-range)
guile> ERROR: In procedure scm_read_expression:
ERROR: standard input:1:17: unexpected ")"
ABORT: (read-error)

Also, the error message should mention that the value 
in question is an exponent (this can be non-obvious in actual
code).






             reply	other threads:[~2008-11-01 14:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-01 14:22 Bill Schottstaedt [this message]
2008-11-19 21:48 ` (number? '1e311) Ludovic Courtès

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=20081101142047.M70127@ccrma.Stanford.EDU \
    --to=bil@ccrma.stanford.edu \
    --cc=bug-guile@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).