i guess it really comes down tolerance for dialectization (related discussion).
i’ve found in the past that when people start adding general purpose extensions to fundamental types like Result, you inevitably want to start using them in more than one module. so every project that does this eventually grows a _Core or _Common or _Basics or _Utilities module that becomes a magnet for miscellaneous “convenience” API (Collection.onlyElement, BidirectionalCollection.dropLast(while:), unreachable, log(_:), Double.format(places:), etc.).
and if you maintain more than one repository, it is highly probable that this module will metastasize into a swift-core-utils package that becomes a Universal Dependency and continue accumulating helpful extensions until you have reinvented Foundation.
anyway, that’s not specific to the issue at hand, just a general explanation of why i tend to recommend against adding generic helpers to standard library types.
1 Like