Re:Announcing Rust 1.36.0
by Diggsey on Thursday July 04, 2019 @05:17PM
(#20357891)
I would just read the words, "use" "standard" "fs" "file" and wouldn't pronounce the "::" at all.
[ Parent
| on HN ]
Re:Announcing Rust 1.36.0
by AlleyTrotter on Thursday July 04, 2019 @05:28PM
(#20357960)
so the " :: ' has no verbal meaning, it's just a way of linking traits, libraries, functions,or crates?
Not easy to explain
Re:Announcing Rust 1.36.0
by atombender on Thursday July 04, 2019 @10:16PM
(#20359389)
It's for dereferencing namespaces. "a::b::c" is analogous to a file system path /a/b/c.
Re:Announcing Rust 1.36.0
by AlleyTrotter on Thursday July 04, 2019 @05:33PM
(#20357990)
I found what I was looking for in the appendix
B-3 Path related syntax """ ::path Path relative to the crate root (i.e., an explicitly absolute """