confusing *once they learn it* -- Rust's mod system is confusing 3/
I think it was a mistake that `use` starts from the root, since `::` is much shorter than `self::`
-
-
it makes the happy path look real nice though. I'd be writing :: everywhere if it didn't.
-
I find this especially unintuitive when using extern crate with dev dependency in mod tests...
-
... needing to additionally use symbols as self::crate_name::some_fn is a wart
-
there's probably some other idiom to do it but I don't know it
-
can't you put the dep extern crate in your crate root with a cfg(test) on it?
-
I'd prefer it be local to the test, but I guess that can work
End of conversation
New conversation -
-
-
You have no idea how many times we redesigned this; changing will perturb entire resolve algo..
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.