3 ms·
If you want a strong resemblance, Swift looks spookily like Groovy - to the point where I have to actually check sometimes that I'm not reading Groovy code. I w
by zmmmmm 12y ago
If you want a strong resemblance, Swift looks spookily like Groovy - to the point where I have to actually check sometimes that I'm not reading Groovy code. I would say much more so than Scala.
- vorg 12y agoThe examples on the first page of the documentation ( https://developer.apple.com/library/prerelease/mac/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html https://developer.apple.com/library/prerelease/mac/documenta... ) are: let maximumNumberOfLoginAttempts = 10 // let keyword var currentLoginAttempt = 0 // var keyword var welcomeMessage: String //type postfixed after colon if turnipsAreDelicious { // no parens around if-condition println("Mmm, tasty turnips!") } let http404Error = (404, "Not Found") //tuple println("The status code is \(statusCode)") //interpolated string uses \( ... ) I don't think the syntax looks like Groovy at all!