[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master ac1d15e95c 1/2: ; * src/data.c (Fash): More precise doc strin
From: |
Mattias Engdegård |
Subject: |
Re: master ac1d15e95c 1/2: ; * src/data.c (Fash): More precise doc string |
Date: |
Tue, 19 Jul 2022 17:08:48 +0200 |
19 juli 2022 kl. 16.26 skrev Eli Zaretskii <eliz@gnu.org>:
> . it requires the reader to understand that shifting, multiplication,
> and division are equivalent
> . it requires the reader to understand the notion of "rounding down"
You certainly don't think highly of elisp programmers...
> How about explaining in simple words what this does to positive and
> negative values shifted left and right?
>
> One possible way to explain that is what the ELisp manual does.
The manual uses the same definition as the doc string now uses.
But let's try once more:
Shifting left one step multiplies the value by two.
Shifting right one step divides the value by two, after first decrementing the
value by one if it was odd.
Re: master ac1d15e95c 1/2: ; * src/data.c (Fash): More precise doc string, Stefan Monnier, 2022/07/19