As much as I'm enjoying the Rust language, I doubt my brain will ever fully grok...
Kevin P. Fleming @kevin@km6g.us
As much as I'm enjoying the Rust language, I doubt my brain will ever fully grok the automatic type inference mechanism. Here's a small example: https://docs.rs/tokio/1.46.1/tokio/sync/mpsc/fn.channel.html
The type 'tokio::sync::mpsc:channel' has one generic parameter which is a type, and it's the type of the objects which will be sent and received through the channel. However, in this example that type parameter is not specified but the code is completely valid. What is that type in that example?
If your answer was not "whatever type the compiler chose for the index variable 'i' in the for-loop, which has a single constraint that it must be able to hold integer values from 0 through 9 (inclusive)", then welcome to the club!