[Top][All Lists]

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

Re: Improving the API for read options

From: Mark H Weaver
Subject: Re: Improving the API for read options
Date: Sun, 11 Nov 2012 02:56:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Mark H Weaver <address@hidden> skribis:
>> One problem I have with the existing API has to do with its treatment of
>> square brackets.  There are multiple things that one might want to do
>> with square brackets, but since 'square-brackets' is a boolean option,
> For that particular problem, I’d propose:
>   (set-port-read-options! PORT OPTIONS)
> but with OPTIONS being an list of option/value pairs, or:
>   (set-port-read-option! PORT OPTION VALUE)
> where OPTION is a symbol.
> Nothing fancy, but that should do the job while being reasonably
> future-proof, no?

Okay, if we limit the API to setting per-port options for now (and
leaving any unspecified options unchanged), I guess that's fine.

I'll work on it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]