From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: setq's with missing final arguments. Date: Sun, 22 Nov 2015 13:03:24 +0000 Message-ID: References: <20151122122657.GA2332@acm.fritz.box> <87egfi5h8i.fsf@igel.home> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1448197447 7016 80.91.229.3 (22 Nov 2015 13:04:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 13:04:07 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 14:03:57 2015 Return-path: Envelope-to: ged-emacs-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 1a0UIt-0007EL-3I for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 14:03:39 +0100 Original-Received: from localhost ([::1]:55976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0UIt-0005HV-1P for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 08:03:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0UIh-0005FZ-0D for emacs-devel@gnu.org; Sun, 22 Nov 2015 08:03:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0UIg-0000jj-2D for emacs-devel@gnu.org; Sun, 22 Nov 2015 08:03:26 -0500 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:33798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0UIf-0000iz-RZ for emacs-devel@gnu.org; Sun, 22 Nov 2015 08:03:25 -0500 Original-Received: by lbbcs9 with SMTP id cs9so83113870lbb.1 for ; Sun, 22 Nov 2015 05:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=n2IHHSUS/DnT57T9K5q4/th2Krcf1JSZIetsqTQyc6s=; b=TCN8WeA5TSy8Bknw8oNQ2xEKsVR6va+KvkT7sAC5j3rIaGdrq8ekRA578mZZm0Xn3/ H46GSAGro12EgdoPI/A27fBzWkIdOzjztZLoAZubiQuIAJwsnJT/LV6WI1b80Gs6hh4M 0Yap1thLm96vMtoca3c9/4C7/E1Om3w4vxHv8mFdgRf/XY2x0aXaXD0zLdOMVThdQ3MV NedqIZPQ7LO8S+BZ5ym+GLPq16nmMj8GGpkuzvjTxPYdnPO3BMLD+JnvtQcXqQVkum0f abAZJmor+9YJZ2xZXp4ahNXQwioC8jPdl7jgEUs9Z9LHAKaswWLo8YVC0rd4QILCqbUA livw== X-Received: by 10.112.168.133 with SMTP id zw5mr1062900lbb.95.1448197405028; Sun, 22 Nov 2015 05:03:25 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Sun, 22 Nov 2015 05:03:24 -0800 (PST) In-Reply-To: <87egfi5h8i.fsf@igel.home> X-Google-Sender-Auth: -bp9XfV6exdGmZbFMTLt1rsLhy4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195005 Archived-At: Alan said: > In the setq, there is a missing argument after "bar". At the moment, the byte compiler just generates code to assign nil to bar, without giving any warning. IMAO, this is Very Bad. Oleh said: > In my opinion, multi-variable setq should be deprecated altogether. I'm in favor of giving warnings about any one of these (we shouldn't actually change any behavior right now, of course). I agree with Alan that the current behavior (allowing multiple args where the last one might be assumed to be nil) is bad (regardless of how consistent it is), and I think both options are a fine way to warn users.