summaryrefslogtreecommitdiff
path: root/docs/markdown/Syntax.md
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-02-12 09:30:04 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-03-03 11:26:23 -0800
commit71304684024bcdec102212117ff1ae3880c0318c (patch)
treef7fda13c827649d916eff67bab65168c3834b731 /docs/markdown/Syntax.md
parentdaf4774cea27e223ca338310912734c05d0f4d54 (diff)
downloadmeson-71304684024bcdec102212117ff1ae3880c0318c.tar.gz
compilers: Remove the BaseOption type
This class only served one purpose, to avoid typing the name of the option twice. Unfortunately the way it was implemented made getting the type checking right difficult, and required storing the same data twice. This patch replaces this approach with a dictionary comprehension that creates the OptionKey from the UserOption. This allows us to initialize a single dictionary once, avoid typing the name twice, delete lines of code, and get better type safety. As an added bonus, it means that the exported data from the module can be marked module constant, ie, ALL_CAPS.
Diffstat (limited to 'docs/markdown/Syntax.md')
0 files changed, 0 insertions, 0 deletions