From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Allan Webber Newsgroups: gmane.lisp.guile.devel Subject: Re: rename from q to queue Date: Thu, 14 Apr 2016 14:35:04 -0500 Message-ID: <874mb4htlj.fsf@dustycloud.org> References: <11ca009a333f511d7510d4bc8671e409@openmailbox.org> <8737qrjh9l.fsf@gnu.org> <87y48g8eef.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 1460662516 1161 80.91.229.3 (14 Apr 2016 19:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 19:35:16 +0000 (UTC) Cc: guile-devel@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Apr 14 21:35:14 2016 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 1aqn2l-00029y-Tr for guile-devel@m.gmane.org; Thu, 14 Apr 2016 21:35:12 +0200 Original-Received: from localhost ([::1]:45396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqn2l-0007QT-E9 for guile-devel@m.gmane.org; Thu, 14 Apr 2016 15:35:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqn2i-0007LL-8a for guile-devel@gnu.org; Thu, 14 Apr 2016 15:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqn2g-0001Jf-Lv for guile-devel@gnu.org; Thu, 14 Apr 2016 15:35:08 -0400 Original-Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:57180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqn2g-0001J4-H2; Thu, 14 Apr 2016 15:35:06 -0400 Original-Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 9B5472667C; Thu, 14 Apr 2016 15:35:04 -0400 (EDT) User-agent: mu4e 0.9.13; emacs 24.5.1 In-reply-to: <87y48g8eef.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c02::f03c:91ff:feae:cb51 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.devel:18287 Archived-At: Ludovic Court=C3=A8s writes: > Mathieu Lirzin skribis: > >> One way to not break backward compatibility, would be to move (ice-9 q= ) >> code in (ice-9 queue) and make (ice-9 q) use it and re-export every >> variable with its old name. > > Right. > >> Finally we will need a way to give the information that (ice-9 q) modu= le >> is deprectated to the users. I am not sure what is the best way to >> achieve this. Maybe with: >> >> (eval-when (expand load eval) >> (display "..." (current-warning-port))) >> >> What do others think? > > We could do a quick hack to iterate over the exported bindings, > re-export them, and print a message. > > However, I think it would be best to have a mechanism in the module > abstraction to /declare/ renames. That would allow both the compiler > and the run-time support to emit an appropriate warning. > > This would require something like adding a special field to =E2=80=98mo= dule=E2=80=99 > records, such that one can write, say: > > (define-module (ice-9 q) > #:superseded-by (ice-9 queue)) > > With that in place, it will become much easier to discuss about ice-9 > renames, IMO. > > Thoughts? > > Thanks, > Ludo=E2=80=99. I think that would be useful. There's been talk about renaminig things from (ice-9) into a (guile) namespace. Likewise aliasing things from (srfi) to something more human-readable. Are the rename and aliasing thing the same step or two different things?