|
|
|
|
|
by kevinossia
1261 days ago
|
|
Sure you can. C++ has reference-counted garbage collection with its smart pointers and RAII, just like Swift. People certainly write high-throughput systems in C++. Swift is slower than C++, yes, but not because of its memory management scheme. |
|
I wouldn’t call RAII “reference counting”. I mean, I guess, but it’s the programmer or the compiler doing it. I’m talking about runtime reference counting.