Sujet : Re: a plain English "FizzBuZZ" idiom
De : mikegonta (at) *nospam* gmail.com (Mike Gonta)
Groupes : comp.lang.miscDate : 22. Mar 2024, 17:56:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utk9no$2q558$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 2024-03-22 9:05 a.m., Tim Rentsch wrote:
Bruce Axtens <snetxa@hotmail.com> writes:
On 2/03/2024 4:06 am, Mike Gonta wrote:
>
if the counter is divisible by 3 then
>
The counter is always divisible by 3. It is not always *evenly*
divisible by 3.
In mathematics standard terminology uses "a is divisible by b"
to mean "a is an integer multiple of b". The "evenly" is not
needed.
Thanks Tim, that's an excellent point.
And while some think that redundancy in grammar is bad, it definitely has it's uses. Since plain English idiom is more grammar than math, the-idiom can be very forgiving.
[
to decide if a number is divisible by another number is:
to decide if a number is evenly divisible by another number is:
divide the number by the other number returning a quotient number and a remainder number;
return true if the remainder is null;
]
Now you can have your cake and eat it too.
There is no "end" in idiom, for idiom is an end in itself.
-- Mike Gontalook and see - many look but few seehttps://mikegonta.com