Why Swift Sucks
stackoverflow.com
stackoverflow.com
https://stackoverflow.com/questions/32305891/index-of-a-subs...
https://stackoverflow.com/questions/24037711/get-the-length-...
https://stackoverflow.com/questions/38454952/map-array-of-ob...
https://stackoverflow.com/questions/24250938/swift-pass-arra...
https://stackoverflow.com/questions/34540185/how-to-convert-...
The language is irredeemable if the simplest tasks are that complicated.
https://stackoverflow.com/questions/24508592/how-to-iterate-...
https://stackoverflow.com/questions/33463511/how-to-reverse-...
they removed the c-like for-loop in swift, which IMO is a wrong decision.
c for-loop is an example of "less is more", a single syntax to cover all cases.
their argument is that c for-loop is not "swifty" and not beginner friendly (I don't understand why the above is). But if one can't learn c for-loop within 5 minutes, perhaps the person is unsuitable for any programming activities.
For the project I used to work on, we were dealing with strings a lot and decided one day to make our own strings (implemented basically as arrays of characters*) because even the patient guy on our team had lost patience with Apple's strings. Apple changed how strings work several times after that, and we were unaffected. I guess if the project were still around, the loops would've gotten it one day.
* 1 character to us = 1 extended grapheme cluster aka what a human would see as one character