3 ms·
Agree that making keywords look like functions is weird and bad, but I also loathe languages that insist on using special chars for things that are better expre
by Pxtl 10y ago
Agree that making keywords look like functions is weird and bad, but I also loathe languages that insist on using special chars for things that are better expressed with words. C# is my daily driver and I like how it calls pass-by-reference stuff "ref". And likewise, while I can see the appeal of making namespace and member lookups distinct, I've never liked the readability of C++ :: syntax, and I learned C++ fairly early on in my career.
- masklinn 10y ago> C# is my daily driver and I like how it calls pass-by-reference stuff "ref". `&` isn't a parameter annotation in Rust, it's two unary operators, two type annotations (general) and a pattern-matching operator. The latter of which `ref` also is, incidentally, it means "capture a value by reference" in a pattern: https://play.rust-lang.org/?gist=30b436d83701f74b986aea978fa22a48&version=nightly&backtrace=0 https://play.rust-lang.org/?gist=30b436d83701f74b986aea978fa... (& meaning "capture a reference by its target" in that context, which is logically the structural inverse of the operator)