[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: describe-prefix-bindings uses let* but could use let
From: |
Stefan Monnier |
Subject: |
Re: describe-prefix-bindings uses let* but could use let |
Date: |
Wed, 13 Sep 2006 12:47:41 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> Only one variable is bound - no need for let*.
> Is let better than let* if you do not need it?
I believe the resulting byte-code is 100% identical.
But you save at least 1 byte in the source code. More importantly at times,
you save 1 column of indentation.
> I suspect it is in some way as you suggest the change, but I am curious
> how. :)
Actually, sometimes using let* instead of let (when defining several vars)
can result in more efficient byte-code. Of course, maybe the reverse is
true as well but I've never witnessed it.
Stefan