-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: Having a type named "Money" in a module named "Currency" with other types using the term "currency" made it confusing to have similar terms. "Money" also did not properly reflect that it is a type-erasure protocol, while "AnyCurrency" provides a stronger indication at use sites. Modifications: - Rename `Money` to `AnyCurrency` - Update code documentation to be less brittle and reflect the new naming - Rename `_MoneyUmbrellaProtocol` to `_CurrencyImplementation` Result: Naming schemes in swift-currency should be more consistent and helpful to those learning the library's API.
- Loading branch information
Showing
8 changed files
with
347 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.