unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Guile Devel <guile-devel@gnu.org>
Subject: Syntax for symbols is more permissive than R6RS
Date: Fri, 24 Apr 2009 00:27:44 -0700	[thread overview]
Message-ID: <1240558064.3133.147.camel@localhost.localdomain> (raw)

Hi,

I was poking around the reader while working on the Unicode stuff, and I
found that there aren't checks for a lot of symbol names that R6RS
considers to be invalid.

The following line has 11 dodgy but not invalid variable names:

+  -  ...  00A  @  [  \  ]  {  |  } 

They can be strung together to make fun code like this:
(define - 1)
(define [ 2)
(define ] 3)
(+ 1 [ - 2 3 ])
==> 12

Which of these are useful extensions and which of these are bugs?

Thanks,

Mike Gran





             reply	other threads:[~2009-04-24  7:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24  7:27 Mike Gran [this message]
2009-04-24 15:27 ` Syntax for symbols is more permissive than R6RS Ludovic Courtès
2009-04-27 20:26   ` Neil Jerram

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=1240558064.3133.147.camel@localhost.localdomain \
    --to=spk121@yahoo.com \
    --cc=guile-devel@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).