Stefan Behnel wrote:
> Robert Bradshaw, 08.12.2009 00:41:
>   
>>      cython.infer_types(None) # the default, "safe" inference.
>>     
>
> Note how "infer_types(None)" basically reads "do not do any type inference"
> in the source that uses it. However, that would be "infer_types(False)".
>   
Just to make a point, I think it should be

 - infer_types(True) - unsafe mode
 - infer_types(False) - backwards-compatible mode
 - _hidden_developers_only_directive_turn_off_inference_completely(True) 
- absolutely no inference

Similarily for "bint" etc. I think there's a limit to how much of the 
language should be controllable by compiler directives; sometimes we 
have to just make choices on the users behalf, or the result will be 
completely unusable.

If we have to do tweaks to double and bint to get acceptable default 
behaviour, but would like a switch for backwards-compatability, a simple 
language_level("0.12") directive would be better.

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

Reply via email to