Hacker News new | ask | show | jobs
by iudqnolq 1888 days ago
> When using collect the type definition is not necessary, as long as the function contains enough hints to infer it.

Absolutely, rusc can also often detect the type the collect needs if you do a few simple things to the return value and then return it from a function.

1 comments

Hey Great comments! Thanks a lot. They certainly help to get a better understanding of how the type system actually work under the hood :)