3 ms·
I just wish they would fix basic usability of strings and protocols in Swift. Why can't I have a variable that has a protocol as type? Why can't I pass a subs
by newaccount74 5y ago
I just wish they would fix basic usability of strings and protocols in Swift.
Why can't I have a variable that has a protocol as type?
Why can't I pass a substring to a function that wants a string?
Why is string parsing so much harder than it should be?
- tjalfi 5y ago> Why is string parsing so much harder than it should be? Mike Ash answered[0] this question back in 2015. [0] https://www.mikeash.com/pyblog/friday-qa-2015-11-06-why-is-swifts-string-api-so-hard.html https://www.mikeash.com/pyblog/friday-qa-2015-11-06-why-is-s...