Latest Put Your Defaults at the End: Argument Ordering in Swift
A small decision with big impact: why required parameters should come first and defaulted parameters should trail at the end. The Swift API Design Guidelines agree.
Tech blog posts
A small decision with big impact: why required parameters should come first and defaulted parameters should trail at the end. The Swift API Design Guidelines agree.
Booleans are simple, but sometimes they create more confusion than they solve. When false doesn't have an obvious meaning, a two-value enum might be the clearer choice.