On Fri, Jan 2, 2009 at 4:51 PM, Alexander Belopolsky
<alexander.belopol...@gmail.com> wrote:
> On Fri, Jan 2, 2009 at 2:26 AM, Adam Olsen <rha...@gmail.com> wrote:
> ..
>> Compiling as C++ is too obscure of a feature to warrant uglifying the
>> code.
>
> Malloc casts may be hard to defend, but most of python code base
> already has them, there is little to be gained from having these casts
> in some places and not others.  There are other design flaws that a
> C++ compiler may help to catch.  Two examples that come to mind are
> use of void* where a typed pointer is a better match and declaring
> external functions in .c file instead of including an appropriate
> header.  In most cases keeping in mind compliance with C++ leads to
> better design, not to uglier code.

Can't those errors be found simply using appropriate warning flags in
the C compiler ?  C has stopped being a subset of C++ a long time ago

David
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to