[OT] The Usual Arithmetic Confusions
deadalnix
deadalnix at gmail.com
Fri Feb 18 00:07:50 UTC 2022
On Thursday, 17 February 2022 at 22:41:59 UTC, Walter Bright
wrote:
> On 2/17/2022 12:11 PM, Paul Backus wrote:
>> Yeah, implicit signed-to-unsigned conversion is really nasty.
>> Even if we keep the rest of the C-style promotion rules,
>> getting rid of that one would still be a big improvement.
>
> There is a simple solution you can use: never use unsigned
> integers. I'm not being facetious. Many languages do not have
> unsigned integer types.
Then you don't get to know the length of a slice, this is going
to be really limiting really quick.
More information about the Digitalmars-d
mailing list