Terrence Miao
-
2014-06-03 13:59:15+1000
- Updated: 2014-06-03 13:59:15+1000
Apple announces a new programming language called
Swift.
The business are excited.
The reporters are puzzled.
The developers are lost ...
Shared with: Public
+1'd by:
Dean Budd
,
Kieran Simpson
Casper Casper
- 2014-06-04 12:25:27+1000
looks like scala
Casper Casper
- 2014-06-04 12:27:38+1000
func backwards(s1: String, s2: String) -> Bool {
return s1 > s2
}
def backwards(s1: String, s2: String) : Bool {
s1 > s2
}
Kieran Simpson
- 2014-06-04 13:14:18+1000
As a lot of comments have shown, Swift looks a lot like Groovy too.
Casper Casper
- 2014-06-04 13:32:17+1000
yeah, I was going to say groovy, then I saw the optional postfix type annotations
return s1 > s2
}
def backwards(s1: String, s2: String) : Bool {
s1 > s2
}