3 ms·
I've used Swift since version 1 and stopped using it at 4-ish. Not surprised to see they're still finding ways to mess with people, and glad you could add to th
by hot_gril 4y ago
I've used Swift since version 1 and stopped using it at 4-ish. Not surprised to see they're still finding ways to mess with people, and glad you could add to the list.
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
- bobbylarrybobby 4y agoHow did you handle characters of different lengths? Was each extended grapheme cluster its own array?