-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a relatively thin accessor. The main advantage over directly accessing the underlying value is the additional context information is propagated. The user must manually pass a `factory` arg to construct the wrapped value for two reasons: * A collection doesn't know the types of elements it contains. * CollectionSubject can't depend on StrSubject because it would cause a circular dependency (StrSubject.split requires CollectionSubject), and finding a solution for this looks non-trivial. A factory arg is necessary anyways to support custom subjects. Also exposes StrSubject as `subjects.str` (as done with several other subjects) Closes #41 PiperOrigin-RevId: 540009713
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 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