[plt-scheme] keyword arguments (in v4.0, maybe)
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 ':'.
Rob