This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] misc fixes and improvements to Python code.
>>>>> "Thiago" == Thiago Jung Bauermann <bauerman@br.ibm.com> writes:
Tom> Do you think we should use keyword arguments universally? I was
Tom> thinking we probably should, but I think I noticed a single-argument
Tom> function without them, and I was wondering if we should bother with
Tom> those.
[...]
Thiago> We could add keyword arguments to other functions as well, but I don't
Thiago> know of a practical advantage there, it would be only for simmetry, I
Thiago> suppose.
Yeah.
I have thought about it a bit more. I think there are two possible
benefits to applying this to all functions. One is that it makes the
documentation simpler -- we can simply document that the argument
names in the docs are always part of the API. The other is that it
may make some code future-proof.
Neither of these seem all that strong to me. I think we can leave it
as-is for now. This is the more conservative approach, anyway, in
that we can always add keyword arguments later.
Thiago> Can someone write a gcc plugin adding exceptions as a syntax add-on to
Thiago> the C language? :-)
:)
Tom