Y
Hacker News
new
|
ask
|
show
|
jobs
by
Diggsey
2539 days ago
I would just read the words, "use" "standard" "fs" "file" and wouldn't pronounce the "::" at all.
2 comments
AlleyTrotter
2539 days ago
so the " :: ' has no verbal meaning, it's just a way of linking traits, libraries, functions,or crates? Not easy to explain
link
atombender
2539 days ago
It's for dereferencing namespaces. "a::b::c" is analogous to a file system path /a/b/c.
link
AlleyTrotter
2539 days ago
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 """
link
jnordwick
2539 days ago
std pronounced "stud" with a very very short "u".
link