[plt-scheme] keyword arguments (in v4.0, maybe)

From: Robert Nikander (nikander at nc.rr.com)
Date: Tue Jun 12 09:05:38 EDT 2007

On Jun 11, 2007, at 11:48 PM, Matthew Flatt wrote:
>      (greet "John" #:last "Doe" #:hi "Howdy")
>      (greet #:last "Doe" "John" #:hi "Howdy")
>      (greet #:hi "Howdy" #:last "Doe" "John")

Any interest in having an option to read symbols ending in ':' as  
keywords? (like srfi 88)  I personally find this prettier and easier  
to read.

(greet "John" last: "Doe" hi: "Howdy")

I'm imagining that we could turn it on/off with something like

#reader-options ...

at the top of a file?  That would preserve any existing code that  
used symbols ending in ':'.


Posted on the users mailing list.