3 ms·
Yes, we do if we want to have an idiomatic interface for the application on top of the driver. Pull requests proving otherwise are welcome
by emmericp 7y ago
Yes, we do if we want to have an idiomatic interface for the application on top of the driver.
Pull requests proving otherwise are welcome
- jmull 7y agoI don’t think it’s idiomatic to do a bunch of unnecessary memory management in inner loops, right?
- mpweiher 7y agoThe memory management is being done by the language.
- jmull 7y agoARC is implemented at the language level but it's not required. You can use it when and where you like. One fundamental aspect of swift is the distinction between reference types -- which are reference counted -- and value types -- which are not. Generally in Swift you'd use a value type over a reference type unless you have reasons not to. E.g.: https://developer.apple.com/documentation/swift/choosing_between_structures_and_classes https://developer.apple.com/documentation/swift/choosing_bet... I mean, I don't know what the right approach for this library is. The authors are going to have to fix their own code. IMO, coming up with a demonstrably poor solution and trying to defend it as "idiomatic" is pretty weak.