4 ms·
Can someone point to a explanation of how to speak/read Rust. exactly how would you say "use std::fs::File" How does one pronounce :: Seems simple enough but th
by AlleyTrotter 7y ago
Can someone point to a explanation of how to speak/read Rust.
exactly how would you say "use std::fs::File"
How does one pronounce ::
Seems simple enough but things get much more complex by the third or fourth chapter of the Book.
- Diggsey 7y agoI would just read the words, "use" "standard" "fs" "file" and wouldn't pronounce the "::" at all.
- AlleyTrotter 7y agoso the " :: ' has no verbal meaning, it's just a way of linking traits, libraries, functions,or crates? Not easy to explain
- AlleyTrotter 7y agoI 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 """
- atombender 7y agoIt's for dereferencing namespaces. "a::b::c" is analogous to a file system path /a/b/c.
- jnordwick 7y agostd pronounced "stud" with a very very short "u".
- ordu 7y agoI never pronounce separators like ::, ., ->... And braces, brackets, parenthesis and angle braces I do not pronounce. Programming languages are made not to sing them, but to write and read. To read silently I mean. While I understand what I'm reading, I do not bother to pronounce it in a way that would be digestible by an accident listener. If such a strategy stands between you and understanding, I'd suggest you to use silence gaps of different lengths. Like 0.5s for space and 0.2s for ::.
- AlleyTrotter 7y agoyou don't pronounce "->" as returns even in your thoughts?
- ordu 7y agoI used above -> in a C++ sense, but I tried it watching myself with Rust, and seems that I do not pronounce ->. I pronounce just identifiers, keeping track of the context (and therefore the semantics of identifiers) by other means.