|
From: | Helmut Eller |
Subject: | bug#8711: 24.0.50; binding _ to unused values with lexical-binding |
Date: | Tue, 24 May 2011 08:01:44 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
* Stefan Monnier [2011-05-24 00:56] writes: >>> It can insert (ignore nil) instead which should have the same effect but >>> without triggering the other warning with lexical-binding. > >> Indeed. But I quickly run into another case where that doesn't help: > >> (defun foo (x) (destructuring-bind (y &rest _) x y)) > > I don't see any warning for this code. What warning do you get? ;; -*- lexical-binding: t -*- (defun foo (x) (destructuring-bind (y &rest _) x y)) x.el:2:1:Warning: variable `_' not left unused Helmut
[Prev in Thread] | Current Thread | [Next in Thread] |