5 ms·
Author of those slides here. They were made on the next day after the language was presented on WWDC and were based purely on the first draft of the Swift book
by densh 12y ago
Author of those slides here.
They were made on the next day after the language was presented on WWDC and were based purely on the first draft of the Swift book published online by Apple. Needless to say the book was more of a tutorial than a full-blown spec at that time and many important aspects were not covered (generics were lightly documented without much details).
Can you please provide details about generics in Swift and how exactly are they different from Scala's?
Edit: changed 'superior' to 'different'.
- eklavya 12y agoDon't bother, people will just say X is better than Scala here. They don't know the amount of research done by Odersky on generics and why Scala can not be easily beaten in this area at least.
- eropple 12y agoScala can't be easily beaten there? Man...have you used C#? I mean, I use Scala every day, but C# gives you so much solely on reification and Scala manifests are a real poor patch.
- eklavya 12y agoHoly shit you have got to be joking. Really trolling now, are we? Take a look at things like Shapeless (https://github.com/milessabin/shapeless https://github.com/milessabin/shapeless).
- yohanatan 12y agoI think you meant 'inferior'.
- chrisoverzero 12y agoI think that poster is saying that Swift's generics are not as good as C++'s, and even more not as good as Scala's. "Miles away" is ambiguous, but I think it's "miles behind" in this context, given its proximity to "even" and "let alone."