[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unused variable in mouse.el: make-cursor-line-fully-visible
From: |
Stefan Monnier |
Subject: |
Re: Unused variable in mouse.el: make-cursor-line-fully-visible |
Date: |
Sun, 28 Jan 2007 23:35:55 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) |
>> > (_ (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.
Good.
> I don't see why any variable should be bound here, however, anonymous or not.
Coding convenience.
> It is no doubt compiled away, but I think the code is a bit less clear.
It's definitely not compiled away.
> It's not a big deal, though.
Good,
Stefan