4 ms·
Swift is a beautified and pythonified Objective-C without the dynamic dispatch. It uses the same ARC memory model. C++ doesn't lock you to a particular memory m
by bluetomcat 3y ago
Swift is a beautified and pythonified Objective-C without the dynamic dispatch. It uses the same ARC memory model. C++ doesn't lock you to a particular memory management scheme. You can program with raw pointers like it's 1998, or entirely use post-C++11 value-semantic objects without touching new and delete.
- zer0zzz 3y agoThis is only partly correct. It’s generally encouraged to use value types (or the up coming move only types) unless you actually want the reference semantics or you are interoping with objc apis on Darwin. If you ever watch talks from folks like Dave A. Who wrote the stdlib, he says he only ever uses arc types as a mechanism to enforce COW for the stdlib types and containers.