Deprecate implicit conversion between signed and unsigned integers
Atila Neves
atila.neves at gmail.com
Tue Feb 18 07:52:04 UTC 2025
On Monday, 17 February 2025 at 22:24:37 UTC, Walter Bright wrote:
> 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?
Compilation or test failure, probably.
More information about the dip.ideas
mailing list