|
|
|
|
|
by jstimpfle
178 days ago
|
|
In C++, in particular when restricting to a C like subset, I prefer looking at an expression like foo->bar.baz
instead of (in Rust and other modern languages that decided to get rid of the distinction) foo.bar.baz
For example, the former lets me easily see that I can copy foo->bar and I now have a copy of baz (and indeed bar). In a newer language, it's harder to see whether we are copying a value or a reference. |
|