back

by lerno·12y ago·view on hn ↗
Personally I went all-in on Swift. Unfortunately I found that the sceptics were largely right about Swift:

The safety features did not make the code more safe, but caused new classes of bugs. Runtime performance fairly random. Generics caused ten times as many problems as they solved. Optionals simply added runtime crashes, no additional safety.

And this was surprising, given that I regularly program Java with its optionals, use finals everywhere, clearly annotate nullables and of course I use its generics. (Given how poor the generics is in Java, anything would be an improvement, right? Or so I thought)

Programming in Swift isn't anything like programming in Java/C++. It adopts a much stricter typing model - then leaves you hanging without the tools to overcome the consequences of it. Same with generics, stricter constructor rules etc.