[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler warnings for "unused" method specializers

From: Eric Abrahamsen
Subject: Re: compiler warnings for "unused" method specializers
Date: Fri, 14 Oct 2016 12:08:06 -0700
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> So maybe it's not worth adding extra compiler code to handle method
>>> specializers, but it would be worth allowing multiple _s? I do like the
>>> use of _ to say "this variable intentionally and permanently ignored".
>> How about supporting CL-style ignore declarations?
>> (defun foo (x) (declare (ignore x)) 1)
> You can already do
>     (defun foo (x) (ignore x) 1)

If I was willing to do all that typing, I wouldn't have complained about
having to prefix all my variable names with an underscore in the first
place. :)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]