Mastodon Feed: Post

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

looking at the vec! macro reminds me that hiding the details can be a two-edged sword... stylistically, I think I prefer

'let mut v: Vec = Vec::new();'

over

'let mut v = Vec::new();'

so the person scanning my code can see what is going on better... different styles for different folks #LearningRust