Deprecate implicit conversion between signed and unsigned integers

Kagamin spam at here.lot
Thu Feb 6 16:39:26 UTC 2025


On Monday, 3 February 2025 at 18:40:20 UTC, Atila Neves wrote:
> https://forum.dlang.org/post/pbhjffbxdqpdwtmcbikh@forum.dlang.org

I agree with Bjarne, the problem is entirely caused by abuse of 
unsigned integers as positive numbers. And deprecation of 
implicit conversion is impossible due to this abuse: signed and 
unsigned integers will be mixed everywhere because signed 
integers are proper numbers and unsigned integers are everywhere 
due to abuse. Counterexample is C# that uses signed integers in 
almost all interfaces and it just works.


More information about the dip.ideas mailing list