by eschaton · 2y ago · 0 comments
However, the lightweight generics that we added a decade ago so ago are great for when you want to add additional type hints to catch compile time bugs, just like explicit type declarations in general: They don’t affect the generated code, they just provide additional compiler diagnostics.
Swift on the other hand goes far enough down the same terrible rabbit hole as C++ that, as with C++, its type system was recently demonstrated to be Turing complete. Thus long term maintenance of large, complex codebases is going to be much more difficult because you can no longer look at code in isolation and have a basic idea of what it does.