From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: No Itisnt Newsgroups: gmane.lisp.guile.user Subject: Re: char-set-contains? and # Date: Fri, 28 May 2010 15:52:00 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1275080100 5605 80.91.229.12 (28 May 2010 20:55:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 May 2010 20:55:00 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri May 28 22:54:58 2010 connect(): No such file or directory Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OI6Zx-0002cq-WE for guile-user@m.gmane.org; Fri, 28 May 2010 22:54:57 +0200 Original-Received: from localhost ([127.0.0.1]:44404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI6ZJ-0007Xp-QF for guile-user@m.gmane.org; Fri, 28 May 2010 16:54:13 -0400 Original-Received: from [140.186.70.92] (port=43256 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI6XO-00069z-O8 for guile-user@gnu.org; Fri, 28 May 2010 16:52:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI6XK-0001mK-2p for guile-user@gnu.org; Fri, 28 May 2010 16:52:14 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:57234) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI6XJ-0001lg-P1 for guile-user@gnu.org; Fri, 28 May 2010 16:52:10 -0400 Original-Received: by vws13 with SMTP id 13so1716796vws.0 for ; Fri, 28 May 2010 13:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=pICBpYZaCrvz1sQWx7d9GXGXQR/6WPETD+6bZCKcQZI=; b=PqdMxC7Ap9CGz2eJDSttIxjk+jcZIEA+TGg8qNlQbq3iJBxsLGgxOu3qOZowH+Zhwv Mjhm+2Dmx33ycS9mmX7dOQbw8XF/zthOXcBdNL3l2eEJsSdgHH5D0Z1O2e1wZDIptiDT Eut6o8f4dDkar471JafzxBpmIZibMxnTYVQjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rs6oOerhOnkeN3Fi5SmDBFmUXawFQbk/eZympzV8AKwQemP+dX6X2QigDatrCt3rny 5hcNbGLmrUOZKfNry5smkRLQtsH5QsVoECZcKpk5SCKIPe5VaqoLhPbJZlzdas4DV16P uHn+hLyTjqdEE2Yd/4KWgzU5uIFE1rdV4/byo= Original-Received: by 10.224.65.29 with SMTP id g29mr576057qai.262.1275079920839; Fri, 28 May 2010 13:52:00 -0700 (PDT) Original-Received: by 10.229.232.199 with HTTP; Fri, 28 May 2010 13:52:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7807 Archived-At: 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))