(no title)
jstimpfle | 2 months ago
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.
saghm|2 months ago
jstimpfle|2 months ago
Performance is mostly a consequence of clear and direct code. You mostly don't achieve performance by saving individual copies, but by being in control of the code and architecture.