I’m well aware of the Kotlin Native memory model. I’m just more asking why there is no volatile in Swift and Kotlin native. It seems necessary.
8 months ago
In the swift world you generally synchronize variables with locks, semaphores, etc.There’s some atomic types https://www.swift.org/blog/swift-atomics/It seems KM does support some atomics as well.What exactly do you need from
I’ve honestly never declared a
var in either C or Java, since one of my professors at uni argued against them. So I wouldn’t know what you’re looking for exactly. 🤷♀️