Skip to content

[oscilloscope] Use enums instead of strcmp#23

Open
kubark42 wants to merge 1 commit into
BojanJurca:masterfrom
kubark42:enum_type_safety
Open

[oscilloscope] Use enums instead of strcmp#23
kubark42 wants to merge 1 commit into
BojanJurca:masterfrom
kubark42:enum_type_safety

Conversation

@kubark42
Copy link
Copy Markdown

@kubark42 kubark42 commented Aug 22, 2023

*** UNTESTED: DO NOT MERGE ***


Using enums is faster, smaller, and safer than string comparisons. This also puts the code validators as close to the parsers as possible.


I'm floating a trial balloon to see if this kind of modification would be appreciated. If so, I can do some testing to prep this for merge.

Faster and safer than string comparisons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant