-
-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMMON: Handle boolean types in the debugger
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 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
411892d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to check beginning of the word, i.e. 't' or 'f', because I myself prefer one letter abbreviations of those
411892d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do that, though we have "1" and "0" supported, thus we already have short aliases for ture and false.
In the meantime I changed the code to use parseBool to simplify it. If we want to do it with parseBool one might want to think about whether we want to allow these abbrevations in all cases where parseBool is used. If not we could add a third parameter with a default value of "false" which prevents checks for abbrevations. If we do on the other hand allow that, we could simply add the code to parseBool.