News for hackers. Stuff that matters.
Re:Two years of Rust by pcwalton on Monday May 15, 2017 @07:45PM (#14346217)
> (In Rust, it would be drastically more complex, verging on impossible to pull off with a good UX, due to various language features including wildcard impls, type-parameterized traits, and a Turing-complete type system.)

Swift can downcast, and it has generic extensions and generic protocols. I highly suspect it has a Turing-complete type system as well.

Supporting this requires heroic effort in the compiler, but it can be done.

There are no comments on this comment yet.