Implementing throwing protocol functions as non-throwing
Jan 05, 2020
In Swift, it’s possible to satisfy a throwing function protocol requirement using a non-throwing function, which can be very useful in certain situations.
Using key paths in switch statements
One of Swift’s lesser known, but incredibly powerful language features is how the ~= operator lets us implement custom pattern matching variants between different types.
©2020 Swift Awesome.