New blog post: Which Pointer Should I Use? (a primer on Rust's pointer types) http://pcwalton.github.com/blog/2013/03/09/which-pointer-should-i-use/ …
@wanderview Both those functions use & pointers to vectors. They use & so that you can pass both @ vectors and ~ vectors to them.
-
-
@pcwalton Sorry, meant opt_present() took &str and opts_present() took a &vec of ~str. Diff in string type seemed odd to me.#newtorust -
@wanderview That's because &[&str] wouldn't be compatible with ~[~str] or @[~str]. You can only borrow the outer level of ~ or @ to &. - 1 more reply
New conversation -
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.