emacs-pretest-bug
[Top][All Lists]
Advanced

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

RE: Unused variable in mouse.el: make-cursor-line-fully-visible


From: Drew Adams
Subject: RE: Unused variable in mouse.el: make-cursor-line-fully-visible
Date: Sat, 27 Jan 2007 16:06:18 -0800

> >  (_ (mouse-set-point start-event)) ; variable `_' is unused, AFAICT.
>
> It's probably my code, influenced by my SML hacking.
>
> In Prolog, Haskell, SML, (and probably all other ML dialects and
> many logic
> programming languages) _ is a special variable used as here, to ignore
> arguments or return values.

Yes, I'm used to it in Prolog and Haskell. I don't see why any variable
should be bound here, however, anonymous or not.  It is no doubt compiled
away, but I think the code is a bit less clear. It's not a big deal, though.





reply via email to

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