News for hackers. Stuff that matters.
Re:Swift is like Go by hit8run on Thursday August 27, 2015 @10:27AM (#10129594)
I love Go and I like Swift. This site shows that they are not that different for simple coding. IMHO many Apple/NextStep APIs could use some more simplicity. Right now all these Next Step APIs are pretty verbose and I'm often wondering why simple things need so much API knowledge.
Re:Swift is like Go by jhugg on Thursday August 27, 2015 @10:35AM (#10129653)
My experience is that the learning curve is steep but the payoff is large. The Apple Cocoa/AppKit/CF libs are hefty things to get started with, but man do they make some hard things easy once you get the hang of it. They also tend to push apps to behave more consistently, because people aren’t always reinventing the wheel for more complex UX.
Re:Swift is like Go by Nerdfest on Thursday August 27, 2015 @11:13AM (#10129886)
Except that one is currently open and the other isn't. That carries a lot of weight for some of us.
Re:Swift is like Go by e28eta on Thursday August 27, 2015 @11:58AM (#10130183)
Looks like this hasn't been updated for the changes in the Swift language (since June 2014). That doesn't take away from the content, just be aware that tweaks will be necessary before the Swift will run in more recent versions of Swift.
Re:Swift is like Go by jiyinyiyong on Friday August 28, 2015 @09:20AM (#10135189)
Auther here. I'm mainly working on CoffeeScript and CirruScript. I haven't read Swift code for long.
Re:Swift is like Go by Doublon on Thursday August 27, 2015 @11:02AM (#10129811)
The first one can be shortened for Go:

  package main

  func main() {  
    println("Hello, world!")  
  }
And it looks even more similar to the Swift version.
Re:Swift is like Go by 0x001D on Thursday August 27, 2015 @12:45PM (#10130517)
for println() "These functions are documented for completeness but are not guaranteed to stay in the language."

http://golang.org/ref/spec#Bootstrapping