SRFI 272: Pretty Printing Arthur A. Gleckler (14 May 2026 04:08 UTC)
Re: SRFI 272: Pretty Printing John Cowan (14 May 2026 07:26 UTC)
Re: SRFI 272: Pretty Printing Sergei Egorov (14 May 2026 16:53 UTC)
Re: SRFI 272: Pretty Printing Peter McGoron (14 May 2026 17:30 UTC)

Re: SRFI 272: Pretty Printing Peter McGoron 14 May 2026 17:28 UTC

On 5/14/26 12:53, Sergei Egorov wrote:
> True, but there is no conventional way to specify alternating key-value
> argument lists without confusion; (foo key value ...) may be read as a
> single key followed by multiple values. I am open to suggestions.

I usually use

     (foo [key value] ...)

For example, (foo), (foo key value), (foo key value key_2 value_2) are
allowed, but (foo key), (foo key value key_2) etc. are not. SRFI-125
follows this convention. (Some others don't.)

Racket does (foo key value ... ...) to mean the same thing but I find
that unintuitive and confusing.

-- Peter McGoron