Hi Bruno,

On 3/27/24 3:11 PM, Bruno Haible wrote:
> I guess the strange syntax comes from
>   - a wish to treat all ISO C extensions in a similar way syntactically,
>     without extending the parser too much,

And then MSVC tries to do everything differently. :)
#pragma pack() vs. __attribute__ ((__packed__)) for example.

> Be aware that the update / update_key / default / isdefault stuff was
> created in order to make the reading of gnulib-cache.m4 files possible,
> without too much boilerplate code.
> ...
> I don't know. Before you start with that, take a deep look at the
> gnulib-cache.m4 code.

Yes, it looked like the default() stuff was important, so I was
hesitant to change it. I'll probably hold off until the test suite is
working until doing that.

>> We would have to double check comparability with Python 3.7+, though I
>> think it should be safe.
> 
> s/comparability/compatibility/

I think this typo suites my argument about typos in the key to
GLConfig. :)

That and this typo from the .gitignore handling a few patches ago that
went unnoticed for a long time.

-            filetable['removed'] = sorted(set(filetable['added']))
+            filetable['removed'] = sorted(set(filetable['removed']))

>>     def setLGPL(self, lgpl: Literal[None, True, '2', '3orGPLv2', '3']) -> 
>> None:
>
> Now, that is possibly overkill: It is very descriptive and clear, but
> each time we add new possible option values for the --lgpl option, we
> will need to adapt more places in the code.

Yes, I meant to show that Literal[value1, value2] can have multiple
different types, sorry. The --lgpl handling is less prone to mistakes
and breakage when compared to the conditionals.

Collin

Reply via email to