Hacker News new | ask | show | jobs
by benvan 4314 days ago
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.
1 comments

My problem with both languages is that you can count apples like that. If it can be done, it will be done.