-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently there is no easy way to create non-reentrant transformers where they do not recursively apply on their own output. You could check for the Transformer name, but the API does not require the names to be unique. The only way to write a helper to do this is to generate some obscure name that is guaranteed to probabilistic never have a conflict. A better approach is to simply return the original Option as returned by the Transformer constructor. Thus, users can rely on == to check if a Transform step exactly matches a Transformer that they created. It would be useful to a non-reentrant transformer to cmpopts, but that can be a future addition. It will also need a better name.
- Loading branch information
Showing
2 changed files
with
46 additions
and
10 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