-
-
Notifications
You must be signed in to change notification settings - Fork 10
A string lookup should be provided for macros #249
Copy link
Copy link
Open
Labels
Area-TransformationIssues concerning Biohazrd transformationsIssues concerning Biohazrd transformationsRelativelySmallIssues that are relatively small and could be good candidates for someone's first issue.Issues that are relatively small and could be good candidates for someone's first issue.
Metadata
Metadata
Assignees
Labels
Area-TransformationIssues concerning Biohazrd transformationsIssues concerning Biohazrd transformationsRelativelySmallIssues that are relatively small and could be good candidates for someone's first issue.Issues that are relatively small and could be good candidates for someone's first issue.
Right now macros are organized in an immutable array, but it can be helpful to look them up by name without just evaluating them blindly.
We should consider providing a lazily-created
ImmutableDictionaryof them in addition to the array.This came up when manually translating PortAudio's macro-style enums, which do not have identifying prefixes and had to be listed manually. (EG:
PaSampleFormat)On the flip side however, it might be kinda non-obvious why we offer both (iterating an array is valuable for certain libraries, IE: Win32.) Maybe the dictionary should only be internal?