2 ms·
Swift’s concept of structured mutations only applies to value types, not to reference types like classes and actors. i feel like this would be even more useful
by andrekandre 5y ago
Swift’s concept of structured mutations only applies to value types, not to reference types like classes and actors.
i feel like this would be even more usefull for classes.... it would great if classes could be read-only by default and you had to specify clearly what operations was able to mutate it... but perhaps that would make working with classes more cumbersome...