[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Any scheme objects as keywords

This page is part of the web mail archives of SRFI 88 from before July 7th, 2015. The new archives for SRFI 88 contain all messages, not just those from before July 7th, 2015.



I wonder why a keyword should be limited to a symbol (or special
symbol)?

For the named parameter markers to be easily distinguished from normal
parameters, I think the keyword should be able to be a string or any
other scheme objects according to circumstances.

Examples:

(ranking 2 "Sting" 3 "mission impossible" 1 "Ben Hur")

(buy 'apple 'day 'low "price" 71.89 "qty" 1000)

(number->string 1234567 10 'pad-char #\0 'min-width 10)

--
Joo ChurlSoo