News for hackers. Stuff that matters.
Re:Smashing Swift by hamstergene on Monday June 16, 2014 @02:40AM (#7897712)
I think you (and @twic in discussion below) misunderstand what's going on here.

`class Bar<String> : Foo<String>` is exactly the same as `class Bar<T> : Foo<T>`. The identifier `String` in declaration of `Bar` does not refer to built-in type String, it is a tag for any type.

In other words, you CAN have `Bar<Int>`, `Bar<Float>` and `Bar<everything else>` after using that declaration of `Bar`.

There are no comments on this comment yet.