I've gone back and forth on this over the years, but I think I've come to like the naming scheme of Module.Type+Extras.swift for general extensions in .

Since they're not named (like ObjC’s categories) I find there’s no need for a unique +Name per defining framework, and since types can be pretty generically named, I like the module prefix for clarity.

This also gives me an affordance to Quick Open to like `Text+` and probably land on the right file (as opposed to the SDK interface) too.

Screenshot of many Swift files in Xcode’s sidebar, such as BinaryFloatingPoint+Extras, CoreGraphics.CGPoint+Extras, and Foundation.URL+Extras.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://social.axiixc.com/users/axiixc/statuses/115811618546425618 on your instance and quote it. (Note that quoting is not supported in Mastodon.)