Hacker News new | past | comments | ask | show | jobs | submit login

That’s not what Rust looks like normally, though; usually you’d use “use” and the T is inferred.

The :: and <> are also not particularly unusual syntax for their respective features either.




a::b::c is ugly compared to a.b.c whether you put it in an expression or in a use statement and ::<T>()? is not that rare (ex. rdr.read_u16::<BigEndian>()?).

You asked what bothered us, not what was unusual :)


Oh totally! I mean it as a way of sorting out why. Like, it would bother me more if I had to write it more, so maybe it’s that styles are different or some libraries require it more often? byteorder is one of those crates, it’s true, and I don’t use it super often. So this is helpful!




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: