On 07/10/2010 09:11 PM, Stefan Behnel wrote:
> Robert Bradshaw, 09.07.2010 17:29:
>    
>> For the moment, though, I'm wondering why we even bother letting
>> people declare the type as bool--it's not a very useful (Python) type
>> to statically declare, but can cause a lot of confusion.
>>      
> Agreed, use cases are hard to come up with. However, given that it's there,
> I'd prefer keeping the C++ type in a separate namespace for now and
> maybe(!) improve Cython warnings to find common traps when compiling in C++
> mode.
>    

But int and float has the exact same problem! And there we inherited C 
semantics from Pyrex...

Therefore C++ bool makes sense IMO, to be consistent with int and float 
(but I'd like to see a new solution that doesn't confuse Python 
programmers at some point, both for bool, int and float).

Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to