Cent/ucent why should we implement?
Doigt
labog at outlook.com
Sun Aug 30 22:28:30 UTC 2026
On Friday, 14 August 2026 at 16:27:50 UTC, Richard (Rikki) Andrew
Cattermole wrote:
> Another monthly meeting has occurred, this time one of the
> things I presented was for my PR to implement cent/ucent.
>
> The reception was not the warmest, with questioning on why to
> do it.
>
> Does anyone have reasons for they may want it in language?
>
> Mine:
>
> - Some basic arithmetic can only be described using double the
> word-size type, like with overflow, without using intrinsics.
> - Atomics use it for cas
> - SIMD types go above word-size.
>
> Has anyone got any other reasons?
>
> https://github.com/dlang/dmd/pull/23575
While it is a superficial reason, I believe it must be stated
anyway: because it's cool and D is a cool language that always
has the coolest features. It may sound silly, but being cool is
part of D's core appeal as a language. With that said, I hope you
had a good laugh.
More information about the Digitalmars-d
mailing list