Deprecate implicit conversion between signed and unsigned integers
Walter Bright
newshound2 at digitalmars.com
Mon Feb 17 22:24:37 UTC 2025
On 2/17/2025 1:06 AM, Atila Neves wrote:
>> (Did I mention that explicit casts also hide errors introduced by refactoring?)
>
> `cast(typeof(foo)) bar`?
That can work, but when best practices mean adding more code, the result is
usually failure.
Also, what if `foo` changes to something not anticipated by that cast?
More information about the dip.ideas
mailing list