[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Syntax for symbols is more permissive than R6RS
From: |
Mike Gran |
Subject: |
Syntax for symbols is more permissive than R6RS |
Date: |
Fri, 24 Apr 2009 00:27:44 -0700 |
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
- Syntax for symbols is more permissive than R6RS,
Mike Gran <=