class と struct が暗黙でコピーされるかどうかみたいな話 C# のよくある序盤の罠なのでそれ考えるとね……
みんな「class やそれに相当する型は暗黙で参照型であり、明示的にコピーを作成しない限り参照で取り回される」という世界観に慣れすぎだと思う
class は参照だけど array は CoW な言語もいるんですよ
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.