3 ms·
Go also has documentation. Also, Go has a spec. Swift doesn't. That's a pretty big deal, don't you think? Android is fairly open. You can run whatever you want
by ahoge 12y ago
Go also has documentation. Also, Go has a spec. Swift doesn't. That's a pretty big deal, don't you think?
Android is fairly open. You can run whatever you want on that platform. If you want to use LuaJIT, no one can stop you.
Also, this isn't "Google". It's one guy working for Google. He's on the Go team. He wants to make Go a viable option for games on Android.
If you like Go, this is a good thing.
- pjmlp 12y agoSwift has a spec. Just go to Apple developers documentation.
- ahoge 12y agoI can't find a language specification anywhere. Can you give me a link? go language spec hit #1: http://golang.org/ref/spec http://golang.org/ref/spec dart language spec hit #1: https://www.dartlang.org/docs/spec/ https://www.dartlang.org/docs/spec/ java language spec hit #1: http://docs.oracle.com/javase/specs/ http://docs.oracle.com/javase/specs/ For Swift, I can only find guides and references.
- pjmlp 12y agoAt one click distance for any Mac developer: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/AboutTheLanguageReference.html#//apple_ref/doc/uid/TP40014097-CH29-XID_453 https://developer.apple.com/library/prerelease/ios/documenta...
- ahoge 12y agoFrom the very first paragraph: "The grammar described here is intended to help you understand the language in more detail, rather than to allow you to directly implement a parser or compiler." A language specification is for people who want to implement a parser/compiler/VM/etc. It's something you need if you want to standardize it (e.g. TC39 [ECMAScript] and TC52 [Dart]). A language specification is also generally clearly labeled as such. http://en.wikipedia.org/wiki/Programming_language_specification http://en.wikipedia.org/wiki/Programming_language_specificat... PHP, for example, doesn't have one.
- pjmlp 12y agoAh, so you mean a formal language spec, not an informal one. Edit: I forgot to mention that both Go and Java lack ECMA and ISO specs.
- ahoge 12y agoYes, a language specification is just a prerequisite for standardization. However, it's also useful for people who want to write their own implementation or tools. It also makes issue handling a bit smoother, because you can always check what the spec says if two bits of the ecosystem disagree with each other.