From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: rename from q to queue Date: Thu, 14 Apr 2016 16:15:52 +0200 Message-ID: <87y48g8eef.fsf@gnu.org> References: <11ca009a333f511d7510d4bc8671e409@openmailbox.org> <8737qrjh9l.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: ger.gmane.org 1460643383 31970 80.91.229.3 (14 Apr 2016 14:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 14:16:23 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Apr 14 16:16: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 1aqi45-0003qw-OC for guile-devel@m.gmane.org; Thu, 14 Apr 2016 16:16:13 +0200 Original-Received: from localhost ([::1]:40045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqi45-0003b8-0d for guile-devel@m.gmane.org; Thu, 14 Apr 2016 10:16:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqi3v-0003Y8-Su for guile-devel@gnu.org; Thu, 14 Apr 2016 10:16:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqi3s-0003WG-Jn for guile-devel@gnu.org; Thu, 14 Apr 2016 10:16:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqi3s-0003WA-E1 for guile-devel@gnu.org; Thu, 14 Apr 2016 10:16:00 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aqi3p-0003kF-DH for guile-devel@gnu.org; Thu, 14 Apr 2016 16:15:57 +0200 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2016 16:15:57 +0200 Original-Received: from ludo by pluto.bordeaux.inria.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2016 16:15:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pluto.bordeaux.inria.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 Germinal an 224 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:ImbxRHhUfpimTHbYF3xgTi5RUyI= 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.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:18286 Archived-At: 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) module > 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 ‘module’ 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’.