Creating custom query functions using key paths
How key paths can be made much more powerful when used to query and filter collections.
Articles, podcasts and news about Swift development, by John Sundell.
How key paths can be made much more powerful when used to query and filter collections.
Few Swift features cause as much heated debate as the use of custom operators. While some people find them really useful in order to reduce code verbosity, others think that they should be avoided completely. This week, let's take a look at a few situations that custom operators could be used in, and some of the pros and cons of using them.