3 ms·
Perhaps if you take language features directly, it's not a good comparison with Go. There are some things that did strike me as similar. The approach Go takes
by jamra 12y ago
Perhaps if you take language features directly, it's not a good comparison with Go.
There are some things that did strike me as similar. The approach Go takes is to bring C language to a more modern world (i.e. C without some of the language burdens that we know so well). Swift is attempting to do the same. The way it does type inference is nice.
var x = "Hi" reminds me of Go's const types. The ARC usage reminds me of Go's garbage collection (even though it's not the same thing). Basically, the parts that it omits from C are similar to the parts that Go takes out of C even though the language itself is different... thankfully.
- mseepgood 12y ago> The approach Go takes is to bring C language to a more modern world Like all the other thousands of languages with C based syntax. > var x = "Hi" reminds me of Go's const types Why does it remind you of Go and not of all the other languages that use 'var x = "Hi"' like JavaScript, ActionScript, C#, Scala, Kotlin? > The ARC usage reminds me of Go's garbage collection Why does it remind you of Go and not of all the other languages with garbage collection?
- rayiner 12y ago> Why does it remind you of Go and not of all the other languages with garbage collection? You sound old. ;)
- jamra 12y agoIt reminds me of Go in what it omits from C. There are similarities. Go feels like a mix between python and C. I haven't gotten to Swift in a deep enough way, but it looks like it tried to tackle the same problems with the exception of concurrency. There are differences such as classes and generics in Swift. There are also similarities such as functions as first class citizens (or so it appears so from the closures section of the free book). All in all, it reminds me of Go just a bit. It doesn't remind me of all of those other languages that I do not know.