From: No Itisnt <theseaisinhere@gmail.com>
To: guile-user@gnu.org
Subject: Re: char-set-contains? and #<eof>
Date: Fri, 28 May 2010 15:52:00 -0500 [thread overview]
Message-ID: <AANLkTinJecu2RjnXHlOfbhUJl4B5SyGRqTzZPznd_DuS@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikpekY58j-WBWs-nimGYeZyRufmkuz-79R50b9I@mail.gmail.com>
R5RS specifies that character predicates should return #f, and Guile's
character predicates are implemented in terms of char-set-contains?
R6RS says the same for char-set-contains?
The reason it bothers me is because it makes it cumbersome to deal
with input from a port. Case in point:
> $ grep "(and (not (eof-object\?" -R module
> module/sxml/upstream/SSAX.scm: (and (not (eof-object? c)) (char-alphabetic? c) c)) port)))
> module/language/elisp/lexer.scm: (and (not (eof-object? tested))
> module/language/ecmascript/tokenize.scm: (and (not (eof-object? c))
> module/language/ecmascript/tokenize.scm: (cond ((and (not (eof-object? c)) (char-numeric? c))
> module/language/ecmascript/tokenize.scm: (cond ((and (not (eof-object? c)) (char-numeric? c))
> module/system/repl/repl.scm: (if (and (not (eof-object? ch)) (char-whitespace? ch))
next prev parent reply other threads:[~2010-05-28 20:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-28 3:24 char-set-contains? and #<eof> No Itisnt
2010-05-28 9:21 ` Ludovic Courtès
2010-05-28 20:52 ` No Itisnt [this message]
2010-05-30 18:08 ` Andy Wingo
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=AANLkTinJecu2RjnXHlOfbhUJl4B5SyGRqTzZPznd_DuS@mail.gmail.com \
--to=theseaisinhere@gmail.com \
--cc=guile-user@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).