[Python-ideas] Improving Clarity of re Module

Georg Brandl g.brandl at gmx.net
Thu Nov 28 08:43:47 CET 2013


Am 28.11.2013 06:41, schrieb Andrew Barnert:
> From: Ryan Gonzalez <rymg19 at gmail.com>
> 
> 
>> Whoops...
>> 
>> matched_text matched all_groups
>> 
>> Bad habit from C++...
> 
> 
> When did C++ change from for_each, find_if, and replace_copy to forEach,
> findIf, and replaceCopy? The entire C++ standard library, the C standard
> library that it incorporates by references, Boost and many related
> third-party libraries, the POSIX API that's available on almost every
> platform (even Windows), etc. are all lowercase_with_underscores.
> 
> Did you mean "Windows C API" when you said C++?

I don't think C++ stdlib and Boost are the only ways to program in C++ --
take Qt for example, it has the camelCase convention (and don't I wish it
hadn't).

Georg



More information about the Python-ideas mailing list