2 ms·
> and that almost every popular language (even many that are ostensibly “statically typed”) have ubiquitous nightmare scenarios surrounding implicit casts Well
by renox 4y ago
> and that almost every popular language (even many that are ostensibly “statically typed”) have ubiquitous nightmare scenarios surrounding implicit casts
Well, C/C++ implicit cast are very, very bad, but this doesn't mean that another language can't create sensible 'implicit cast' rules.
No int <-> unsigned implicit cast but allow intY <-- intX implicit cast when Y>=X (same for unsigned).