[plt-scheme] How do I convert (values ...) to something I can do something with?

From: Lee Spector (lspector at hampshire.edu)
Date: Fri Mar 12 11:33:03 EST 2010

FYI Clojure uses [] for vector literals and {} for maps, and there are a variety of reader macro prefixes to (), [] and {} that do other things. I've never liked the way that non-() brackets have been used in other Lisps, but the Clojure conventions are making a lot of sense to me...
 
-Lee

On Mar 12, 2010, at 11:06 AM, Hugh Myers wrote:

> Mu-Lisp used the ']' as a close all--- great for a beginner, less
> great for someone trying to debug misplaced ')' internal to over all
> expression ;-)
> 
> --hsm
> 
> On Fri, Mar 12, 2010 at 10:44 AM,  <hendrik at topoi.pooq.com> wrote:
>> On Thu, Mar 11, 2010 at 09:43:31PM -0500, Jim Wise wrote:
>>> Hugh Myers <hsmyers at gmail.com> writes:
>>> 
>>>> There are Lisp dialects that allow the usage of '{' in addition to
>>>> '('--- probably not Scheme...
>>> 
>>> Yeah -- R5RS and R6RS reserve '{' and '}' for use of future report
>>> versions.  R6Rs allows use of '[' and ']' in addition to '(' and ')' --
>>> these were explicitly reserved in R5RS.
>> 
>> If I recall correctly, the original Scheme compiler (wasn't it called
>> Rabbit?) contained code where '[' and ']' were used to denote 'hunks',
>> which I think were kind of like small arrays used as structures.
>> But maybe that was a relic from the Lisp that Rabbit was written in,
>> rahter than part of Scheme itself.
>> 
>> And there have been a number of dialects that used ']' as a kind of
>> superparenthis that closes all open parentheses back to a matching '['
>> or to the start of the s-expression, whichever comes first.  That
>> superficialy resembles what I was doing, but I utterly reject that,
>> becaue it hides parenthesis mismatch instead of making it easier to see.
>> 
>> -- hendrik
>> 
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>> 
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

--
Lee Spector, Professor of Computer Science
School of Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspector at hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438

Check out Genetic Programming and Evolvable Machines:
http://www.springer.com/10710 - http://gpemjournal.blogspot.com/



Posted on the users mailing list.