On Wed, 13 Sep 2017 11:05:37 +0000, Stefan Ram wrote:

> Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> writes:
>>The *only* reasonable place to stop is right at the beginning: if
>>bool(x):
>>at least for languages like Pascal and Java where `if` requires a
>>specific boolean type.
> 
>   In Java, not only does the if-statement require a boolean expression,
>   but one also cannot convert other types into boolean!

Thanks for the clarification. I didn't mean to imply that literally 
"bool(x)" would be valid Java, or Pascal.

If I remember correctly, in Pascal the name of the type is "boolean".



-- 
Steven D'Aprano
“You are deluded if you think software engineers who can't write 
operating systems or applications without security holes, can write 
virtualization layers without security holes.” —Theo de Raadt
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to