[plt-dev] reading symbols beginning with colon as keywords?

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Sat Jun 13 20:26:06 EDT 2009

Thanks.  The two limitations to this solution I see are:

1. My code would diverge further from "scheme/base", when I'm trying to 
stay close to it.

2. Other people would still have to either use "#:" or go through the 
same contortions themselves to diverge.

Chongkai Zhu wrote at 06/13/2009 07:55 PM:
> You can do this on your own code with readtables:
> http://docs.plt-scheme.org/reference/readtables.html
> Chongkai
> Neil Van Dyke wrote:
>> How about symbols beginning with ":" be read as keywords, as if they 
>> began with "#:"?
>> I want to use keyword arguments in my libraries, but "#:" is big and 
>> scary-looking, and a pain to type.
>> I think this change would break very little old code, and any such 
>> old code could be updated pretty easily.

Posted on the dev mailing list.