10 years on, what would you change about Swift?

I don't think Swift ever truly was a good object oriented language, from the very beginning it was focused on value semantics and making generics accessible.

There was a really well written wwdc 2015 session 408 titled "protocol oriented programming" about the design of the Swift standard library and writing abstractions without adding classes, but Apple since removed it from the website. You can probably still find it if you search for it on the internet and scroll a little.

Swift is not verbose and can infer generics most of the time when written in an idiomatic way. I can't tell you what that would look like in your case from your example as it's too simple.


If you just prefer a different style of programming it makes sense that you'd find the direction unappealing.

5 Likes