News for hackers. Stuff that matters.
Re:Introducing Swift by shortsightedsid on Monday June 02, 2014 @03:34PM (#7835626)
The language itself isn't radically different from most mainstream Algol style languages. That's good because it makes it pretty easy to pick up. In addition to what you mention on variables vs constants, the only feature which is nice seems to switch-cases.

a. No fall through. This is a plus in avoiding bugs. This is minus if you really know what you are doing and want fall throughs b. Pattern Matching in case statements. This is bit interesting and should take care of the previous case.

Other than that my first impression is it's a mishmash of various programming languages. Everything else that they demo'ed seem to be features of XCode (rewinds, variable lifetype analysis etc..) rather than the language itself.

Re:Introducing Swift by wnissen on Monday June 02, 2014 @03:38PM (#7835680)
From the manual: “Execution doesn’t continue to the next case, so there is no need to explicitly break out of the switch at the end of each case’s code.” I bet I know when that became a priority!
Re:Introducing Swift by griotspeak on Tuesday June 03, 2014 @01:08AM (#7838244)
That should actually be 'no implicit fallthrough'. You get fallthrough with the fallthrough keyword.