From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.lisp.guile.devel Subject: Re: %default-port-conversion-strategy and string ports Date: Thu, 31 May 2012 07:09:06 +0200 Organization: Organization?!? Message-ID: <87vcjdrl71.fsf@fencepost.gnu.org> References: <87pq9lz2x2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1338440971 7139 80.91.229.3 (31 May 2012 05:09:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 May 2012 05:09:31 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 31 07:09:28 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 1SZxdW-0007yC-3n for guile-devel@m.gmane.org; Thu, 31 May 2012 07:09:26 +0200 Original-Received: from localhost ([::1]:42632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZxdV-0006h4-OC for guile-devel@m.gmane.org; Thu, 31 May 2012 01:09:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZxdS-0006gx-Ct for guile-devel@gnu.org; Thu, 31 May 2012 01:09:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZxdQ-0007EW-H1 for guile-devel@gnu.org; Thu, 31 May 2012 01:09:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZxdQ-0007EP-AJ for guile-devel@gnu.org; Thu, 31 May 2012 01:09:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SZxdM-0007ni-Gp for guile-devel@gnu.org; Thu, 31 May 2012 07:09:16 +0200 Original-Received: from p508eb2ef.dip.t-dialin.net ([80.142.178.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 May 2012 07:09:16 +0200 Original-Received: from dak by p508eb2ef.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 May 2012 07:09:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508eb2ef.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:mB5O4vZ03wrqzOM8zSFqNR1xHX4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:14536 Archived-At: ludo@gnu.org (Ludovic Courtès) writes: > Hello! > > Commit b22e94db7c91d7661204e33f3bc2bfead002c9b7 adds > ‘%default-port-conversion-strategy’, a natural friend of > ‘%default-port-encoding’. > > First, I’m wondering whether ‘port’ should be part of the name, given > that it’s also referred to by ‘scm_stringn’ & co. It’s good to have it > in the name, for the symmetry with ‘%default-port-encoding’, but it’s > not accurate. > > Second, in commit 9f6e3f5a997f484548bd03e7e7573c38a95c8d09, I changed > string ports to honor it, like other port types, instead of forcing > 'error. This seems like the right thing to me, for the sake of > consistency (in fact, I’d consider the previous behavior as a bug), but > it’s an observable change. > > WDYT? Shouldn't strings be in "internal encoding" anyway? The whole point of a string is to be an array of characters. Not an array of arbitrarily encoded bytes. -- David Kastrup