Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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`.



Yeah, 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.


If only we had type ascription on expressions... ducks




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: