It would be helpful to have a couple code samples with a lot of casts in them. It is really hard to judge the ergonomics of any of these options looking at only a single conversion…
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Pre-RFC: Add explicitly-named numeric conversion APIs | 26 | 5109 | March 11, 2020 | |
| Allow use as and try as for From and TryFrom traits | 37 | 2942 | January 5, 2024 | |
| Numeric .into() should not require everyone to support 16-bit and 128-bit usize | 19 | 3960 | March 25, 2019 | |
|
Let's deprecate `as` for lossy numeric casts
|
54 | 10003 | July 12, 2022 | |
| `as` cast in a real vulnerability | 30 | 2379 | May 29, 2025 |