News for hackers. Stuff that matters.
Re:Swift is a lot like Scala by benvan on Sunday August 24, 2014 @11:16AM (#8218749)
I agree - the examples given are almost infuriating. Whilst I can't comment on how idiomatic the Swift code is, the Scala code is anything but. There's little benefit to using a language like Scala if you're going to count the number of apples and oranges in a list by incrementing a mutable var for each type.
Re:Swift is a lot like Scala by efnx on Sunday August 24, 2014 @12:15PM (#8218881)
My problem with both languages is that you can count apples like that. If it can be done, it will be done.