4 ms·
> We need to fix the fact that you can't write `.into::<u64>()` to disambiguate types. This confused me too at first. You have to do `u64::from(_)` right? It m
by ChadNauseam 1y ago
> We need to fix the fact that you can't write `.into::<u64>()` to disambiguate types.
This confused me too at first. You have to do `u64::from(_)` right? It makes sense in a certain way, similar to how you have to do `Vec::<u64>::new()` rather than `Vec::new::<u64>()`, but it is definitely more annoying for `into`.
- JoshTriplett 1y agoYeah, you either need `u64::from` or `let x: u64 = expr.into()` or similar. It does "make sense" but it's obnoxious, and we should have something better.
- estebank 1y agoIf only we had type ascription on expressions... ducks