This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So, 'use' is pretty flexible. Which is nice. But it also bothers me when it isn't apparent how to use any feature of a language in an obvious, consistent way. Also, 'use' boilerplate at the top of my files is actually a fairly significant percentage of my code!
When do you do only 'use' the top level module? When do you 'use' the module one level above the symbol you need? When do you 'use' specific symbol(s)? When do you wildcard ('*') use? When building a library, when do you just 'pub use' the submodule vs. reexport some or all the symbols?
There are so many choices.
Subreddit
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/rust/commen...