Beyond actor isolation, there are two other important differences between actors and classes:
Actors do not currently support inheritance, which makes their initializers much simpler – there is no need for convenience initializers, overriding, the final keyword, and more. This might change in the future.
All actors implicitly conform to a new Actor protocol; no other concrete type can use this. This allows you to restrict other parts of your code so it can work only with actors.
This feels like a lot more changes than a typical minor Swift version. Maybe that’s because almost all of them are of one topic. We’ve been looking forward to these concurrency features for years, and then they all arrived at once. I hope this means Swift is much more viable for server work.
Huge write-up about a huge release!
This feels like a lot more changes than a typical minor Swift version. Maybe that’s because almost all of them are of one topic. We’ve been looking forward to these concurrency features for years, and then they all arrived at once. I hope this means Swift is much more viable for server work.