[issue23699] Add a macro to ease writing rich comparisons

Raymond Hettinger report at bugs.python.org
Wed May 13 23:23:55 CEST 2015


Raymond Hettinger added the comment:

I'm -1 on this whole concept and I don't believe that it will make porting easier.  It takes longer to learn the macro, see what it does, write tests for it, etc than it takes to model ten lines of boilerplate code.

The macros make it harder for me and others to understand and maintain the code.  In this regard, Python has been getting worse (harder for new maintainers to look at code and know what it is doing).   Saving ten lines of clear code isn't a good motivation for going down this path.   C macros are infamous for a reason.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23699>
_______________________________________


More information about the Python-bugs-list mailing list