Narrowing conversion
Narrowing conversion
Posted Jul 23, 2021 16:40 UTC (Fri) by jezuch (subscriber, #52988)In reply to: Narrowing conversion by Gaelan
Parent article: The Sequoia seq_file vulnerability
I guess it's "not great" by design, like the new-style casts in C++ are ugly by design to discourage casting in general.
FWIW, AFAICT Rust doesn't have implicit *widening* conversion either. Turns out, it too often turns into a footgun.