forked from thoughtbot/Argo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace <| operator with generic subscript
The `<|` operator was necessary when we originally implemented Argo, but Swift has new capabilities now that reduce the need to use a custom operator. Additionally, the operator spelling itself actually conflicts with prior-art that we weren't aware of when we added it. Specifically, `<|` is used in other languages (and sometimes in Swift) as a "pipe backwards" operator, with the type `(T -> U) -> T -> U`. Given these concerns, as well as the additional complexity around fine-tuning the precedence so that it works in an obvious way, I think it makes sense to remove the operator in favor of a generic subscript (which only just became available in Swift 4).
- Loading branch information
Showing
12 changed files
with
91 additions
and
160 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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.