Re:The Curious Case of Swift's Adoption of Smalltalk Keyword...
by barrkel on Sunday June 14, 2020 @02:45PM
(#23520149)
In the absence of keyword arguments as a language feature, boolean arguments should almost always be avoided, and replaced by enums where possible. Boolean arguments are almost always inscrutable at the call site.
Bool is also enforced by the compiler; adding ad-hoc types for things that have only two values is generally not something you should do without good reason. By the way, constructs like these are fairly common in Swift:
which you'd use as something like