Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow double bang (double boolean_not) (#129)
Allows double boolean_not (`!!x`) without requiring the second booelan_not to be enclosed in parenthesis (i.e. `!(!x)`). ## Testing Tested the following use cases: - Single bang (boolean_not) -> `!x` - Double bang -> `!!x` - Parenthesized double bang -> `!(!x)` - Multiple bangs -> `!!!x` - Passed as a parameter -> `my_function(!!x)` ## Changelog ### Added - Allow use of double-bang to "booleanize" a constant/variable integer value without requiring the second boolean negation to be parenthesized. ## Licence - [x] I am licencing my change under the project's MIT licence, including all changes to GPL-3.0 licenced parts of the codebase.
- Loading branch information