From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Improving the API for read options Date: Sun, 11 Nov 2012 02:56:49 -0500 Message-ID: <87sj8g8tdq.fsf@tines.lan> References: <1352073544-24166-1-git-send-email-a.rottmann@gmx.at> <87objceixe.fsf@tines.lan> <87625kuec5.fsf@gnu.org> <87y5ifb2tw.fsf_-_@tines.lan> <87zk2usghj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352620631 3228 80.91.229.3 (11 Nov 2012 07:57:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2012 07:57:11 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Nov 11 08:57:21 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TXSPw-0000yz-RP for guile-devel@m.gmane.org; Sun, 11 Nov 2012 08:57:20 +0100 Original-Received: from localhost ([::1]:55817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXSPn-0006yI-Ex for guile-devel@m.gmane.org; Sun, 11 Nov 2012 02:57:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXSPi-0006uy-9h for guile-devel@gnu.org; Sun, 11 Nov 2012 02:57:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXSPf-000513-7T for guile-devel@gnu.org; Sun, 11 Nov 2012 02:57:06 -0500 Original-Received: from world.peace.net ([96.39.62.75]:33993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXSPf-00050z-3M; Sun, 11 Nov 2012 02:57:03 -0500 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TXSPY-0000T2-PS; Sun, 11 Nov 2012 02:56:56 -0500 In-Reply-To: <87zk2usghj.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 06 Nov 2012 20:01:28 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15152 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver 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=E2=80=99d 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. Mark