[Python-Dev] Start writing inlines rather than macros?

Antoine Pitrou solipsis at pitrou.net
Thu Feb 27 20:36:56 CET 2014


On Thu, 27 Feb 2014 13:27:02 -0600
Skip Montanaro <skip at pobox.com> wrote:
> On Thu, Feb 27, 2014 at 1:23 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> > Well, if we must maintain macros, let's maintain them everywhere and
> > avoid the burden of two different implementations for the same thing.
> 
> Would it be possible to generate the macro versions from the
> inline/static versions where necessary, as some sort of pre-compile
> step?

Uh... well, perhaps, but one still has to check if the macros *are*
correct.
(I'm not sure a static-to-macro converter would be trivial to write)

Regards

Antoine.


More information about the Python-Dev mailing list