Below you will find pages that utilize the taxonomy term “Swift”
Swift Testing: ready for prime time?
I took the new Swift Testing framework out for a spin and used it seriously on a small project.
Conclusion: to me, Swift Testing isn’t ready for serious production use, because either it’s buggy in some important ways, or Apple’s documentation is not specific enough about Testing’s design philosophy and how you should (or should not) use certain features.
My time ratio for “writing tests” to “work out why Testing is crashing” is 1:2 (or worse) at this point.
Testing tools should be well understood and well presented; we trust them with a lot. I think if issues are found with a new framework like Testing, this should be mentioned in the framework documentation.1
Functional Swift: Currying
Currying. It’s one of the stalwarts of functional programming.
Is Currying something you need to know about to be a developer?
Nope.
Is it handy to know about?
Yes. Think of it as a pattern for your toolbox. It can allow some elegant solutions and less code.
Is it weird and esoteric?
No; there’s a certain ‘shape’ to currying code but once you recognise it, there’s no mystery.