Re: [PATCH v2 2/7] qapi/parser.py: add ParsedExpression type

2023-02-08 Thread John Snow
On Wed, Feb 8, 2023, 11:17 AM Markus Armbruster wrote: > John Snow writes: > > > This is an immutable, named, typed tuple. It's arguably nicer than > > arbitrary dicts for passing data around when using strict typing. > > > > This patch turns parser.exprs into a list of ParsedExpressions instead

Re: [PATCH v2 2/7] qapi/parser.py: add ParsedExpression type

2023-02-08 Thread Markus Armbruster
John Snow writes: > This is an immutable, named, typed tuple. It's arguably nicer than > arbitrary dicts for passing data around when using strict typing. > > This patch turns parser.exprs into a list of ParsedExpressions instead, > and adjusts expr.py to match. > > This allows the types we speci

[PATCH v2 2/7] qapi/parser.py: add ParsedExpression type

2023-02-07 Thread John Snow
This is an immutable, named, typed tuple. It's arguably nicer than arbitrary dicts for passing data around when using strict typing. This patch turns parser.exprs into a list of ParsedExpressions instead, and adjusts expr.py to match. This allows the types we specify in parser.py to be "remembere