From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: The =?utf-8?b?4oCcYmluYXJ5LWZyaWVuZGx54oCd?= Latin-1 Date: Fri, 28 Jan 2011 12:15:37 +0100 Message-ID: References: <140262.72997.qm@web37904.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296222391 27703 80.91.229.12 (28 Jan 2011 13:46:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 13:46:31 +0000 (UTC) Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , "guile-devel@gnu.org" To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jan 28 14:46:27 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pioeg-0000Zh-P1 for guile-devel@m.gmane.org; Fri, 28 Jan 2011 14:46:26 +0100 Original-Received: from localhost ([127.0.0.1]:47272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pioeg-00058a-8n for guile-devel@m.gmane.org; Fri, 28 Jan 2011 08:46:26 -0500 Original-Received: from [140.186.70.92] (port=43337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PioeZ-00055y-0B for guile-devel@gnu.org; Fri, 28 Jan 2011 08:46:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PioeX-0002e4-Re for guile-devel@gnu.org; Fri, 28 Jan 2011 08:46:18 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:50007 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PioeX-0002dz-Pi; Fri, 28 Jan 2011 08:46:17 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 1556B3D2C; Fri, 28 Jan 2011 08:47:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=+qTh9+d1AbGm jAm4J4LeFc8X72g=; b=vzRRBb+Q57ikcbMbqHU6XMK0ghfOQNBcEpqdFDYC4VVh IghsPpk4FuQ8aGytABDBpk/eUXwbjAUbX9UyorkesJOzZZR4L4zxBjCmXfcwyGXp XYUi44WltVRbXvkSmS8EGeSl5QMRDME8iDuueF/3FGYzvpPPyPgU4J1jhSLTavo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=VBdco+ o8l8QPV3rA6l8YeuDbSMzHUFr8ZgPmbDaozzrXSeHJlnqfSsuOUIrJdwVjU9Nq8Y JmnbBGrueCUyMWXiP8CNWPDEn97NNNnj94Z8s38MuZMdbZ3YcSV88Rqqcbr71vB0 JylWkl+eZnt6QqlgHjuxpIKoFk6072QiOJM9U= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id E54F33D2A; Fri, 28 Jan 2011 08:47:05 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 11D7C3D29; Fri, 28 Jan 2011 08:47:02 -0500 (EST) In-Reply-To: <140262.72997.qm@web37904.mail.mud.yahoo.com> (Mike Gran's message of "Wed, 26 Jan 2011 10:31:10 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 17F63138-2AE5-11E0-9D1B-BC4EF3E828EC-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11378 Archived-At: On Wed 26 Jan 2011 19:31, Mike Gran writes: > recv, send, etc are clearly bytevector routines.=C2=A0 But, if you want t= o keep > backward compatibility, you should have it handle both cases. > > IMHO, the idea of deprecating the use of strings is the wrong one.=C2=A0 = Either > be bold and get rid of strings for 2.0, or let them be both bytevector > and string functions for the foreseeable future. > > If strings remain an option, there will have to be some mention of the > "binary-friendly" Latin-1 encoding.=C2=A0 ;-) I think recv and send should operate on bytevectors. I also think that if Guile is compiled with deprecated code enabled, strings should be supported, noting that the send message should be a latin-1 string, and that received bytes will be interpreted as latin-1 characters. If passed a string, these functions will issue deprecation warnings. We change the documentation to speak of bytevectors and not strings. This way we provide the correct interface, while not breaking old code, instead indicating the action that people should take to adapt their code. Andy --=20 http://wingolog.org/