From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: unused local variables Date: Fri, 30 Nov 2007 22:17:34 -0500 Message-ID: References: <87wss1qd9e.fsf@ambire.localdomain> <20071130.092322.193982611.kazu@iij.ad.jp> <20071130.182726.126856507.kazu@iij.ad.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196479071 28436 80.91.229.12 (1 Dec 2007 03:17:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 03:17:51 +0000 (UTC) Cc: =?utf-8?B?5bGx5pys5ZKM5b2mIEthenUgWWFtYW1vdG8=?= , emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 04:17:58 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IyIrd-0003RB-Ab for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 04:17:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyIrN-0004hK-8a for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 22:17:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyIrJ-0004fi-QB for emacs-devel@gnu.org; Fri, 30 Nov 2007 22:17:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyIrH-0004fR-TC for emacs-devel@gnu.org; Fri, 30 Nov 2007 22:17:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyIrH-0004fO-Oc for emacs-devel@gnu.org; Fri, 30 Nov 2007 22:17:35 -0500 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyIrH-0000Du-EU for emacs-devel@gnu.org; Fri, 30 Nov 2007 22:17:35 -0500 Original-Received: from toip6.srvr.bell.ca ([209.226.175.125]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071201031734.HOJW1733.tomts10-srv.bellnexxia.net@toip6.srvr.bell.ca> for ; Fri, 30 Nov 2007 22:17:34 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAPtgUEdGN4zh/2dsb2JhbACBWw Original-Received: from bas1-montreal42-1178045665.dsl.bell.ca (HELO pastel.home) ([70.55.140.225]) by toip6.srvr.bell.ca with ESMTP; 30 Nov 2007 22:15:23 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 2F0AF7F61; Fri, 30 Nov 2007 22:17:34 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Fri, 30 Nov 2007 19:11:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84404 Archived-At: >> Right. So you're OK with adding (defvar my-dynamic-var) in one of the >> files but not in both? Why is that? > I'm not really opposing. I don't like warnings, nor programming errors > caused by subtle interactions (or unexpected ones). Once again: I like > lexically scoped languages (Scheme excluded). I'm just not sure > littering packages with (defvar var) or (declare-function function) is > better. It certainly doesn't look clean. I can assure you that warning about unused vars will only require very few extra defvars. Stefan