On Sun, Feb 21, 2021 at 1:07 PM Gregory P. Smith <g...@krypto.org> wrote:

>
> > I'm +1 in general for your proposal. I also like the idea to adopt
>> > Rust's platform support definition.
>>
> +1, but see below.


>
> The main thing from a project maintenance perspective is for platforms to
> not become a burden to other code maintainers.  PRs need to be reviewed.
> Every #if/#endif in code is a cognitive burden.  So being a minor platform
> can come with unexpected breakages that need fixing due to other changes
> made in the codebase that did not pay attention to the platform.  As we
> cannot expect everyone working on code to care about anything beyond the
> tier-1 fully supported platforms, buildbot or not.
>
I think #ifdef's are a big part of the problem, actually.

IIRC, the Linux kernel has been reducing/eliminating #ifdef's and instead
using different .c's for each platform's platform-specific code.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/HRXPWBJNBCRE5RMA2KFMKWB3VA6MJZG3/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to