Live data from Hacker News

Swift is a lot like Scala

leverich.github.io

1–10 of 54 posts

Re: Swift is a lot like Scala

#4
Any language designer that has both "modern, powerful features" and "familiar for current developers" as design goals, will end up with something not unlike other languages that have this. It is not a coincidence that Scala, modern C#, Kotlin, Xtend, Nemerle, Ceylon, Dart and Swift have a lot in common. They're all compiled languages with pretty high performance characteristics. They have support for OO stuff because of the "familiarity" goal (and, often, to interface with existing code) plus functional stuff because of the "powerful" goal. In a way, they're all Java with suck removed and cool stuff bolted on top.

So can we please stop the "ripoff!" arguments and look at what you can do with it? (note, i'm referring to HN comments on threads about Swift more than to the article)

C# 1 was a blatant ripoff of Java 1.2 (or something like that), with hardly anything new added, and only the biggest suck removed. Look at where C# is now. If Apple can push Swift the same way, there are good times ahead!

(assuming it gets good non-Apple support, but that's another rant)

Re: Swift is a lot like Scala

#6
post #4

Any language designer that has both "modern, powerful features" and "familiar for current developers" as design goals, will end up with something not unlike other languages that have this. It is not a coincidence that Scala, modern C#, Kotlin, Xtend, Nemerle, Ceylon, Dart and Swift have a lot in common. They're all compiled languages with pretty high performance characteristics. They have support for OO stuff because…

I don't think anyone's saying Swift is a rip-off (or anyone that I know). If anything it compliments both Swift and Scala that the two are so alike.

Re: Swift is a lot like Scala

#8
post #4

Any language designer that has both "modern, powerful features" and "familiar for current developers" as design goals, will end up with something not unlike other languages that have this. It is not a coincidence that Scala, modern C#, Kotlin, Xtend, Nemerle, Ceylon, Dart and Swift have a lot in common. They're all compiled languages with pretty high performance characteristics. They have support for OO stuff because…

I don't think anyone's complaining about the similarity. :)

Re: Swift is a lot like Scala

#9

It's interesting, given that Joel Spolsky says of Swift "It feels exactly like go", and this person is saying, "Swift is a dialect of Scala". Does that then imply that Go is a dialect of Scala?

Sadly Go chose to use Garbage Collection instead of Reference Counting. I love using Python or Swift for applications that allocate (and free) real hardware resources, like OpenGL texture maps, frame buffer objects and in memory images.

Re: Swift is a lot like Scala

#10

It's interesting, given that Joel Spolsky says of Swift "It feels exactly like go", and this person is saying, "Swift is a dialect of Scala". Does that then imply that Go is a dialect of Scala?

And they all feel like dialects of OCaml ;). (I am not saying 'Haskell' here, because it does not include object oriented programming.)

The thing is that the current generation of languages have so many overlapping features, that they are not all that different language-wise. Just like moving between Pascal, Ada, and Modula-2 was not that hard.

Also, I'd say that Go is the exception here, because in contrast to Go, Swift manages to adopt insights from the last 30 of 40 years of PL research. Go is an utterly boring language and has very little to do with Scala (or Swift).

Post reply on HN