Jun 4, 2014 | 1 minute read
Apple launched the Swift language (Looking for the Swift parallel scripting language? Please visit http://swift-lang.org) at WWDC 2014. A modern language to program for Mac and iOS!
let a = 1000000 let b = 0.0000001 // readable let a = 1_000_000 let b = 0.000_000_1
Practical numerical ranges:
let π = 3.1415926
var name = "Thiago Avelino" var yaer = 25 println "Hi, my name \(name), 'm \(year) years."
Few functions/methods native to strings works:
Not have regular expressions
(condition ? yes : no)
I liked the language, as ’m used to not bother me Go explicit types, lack of regular expression can be a problem seems, but it is a pleasant language to learn!comments powered by Disqus