Break and Continue: While Loops

Steven D'Aprano steve at pearwood.info
Sun Jun 26 08:18:06 EDT 2016


On Sun, 26 Jun 2016 05:32 pm, Lawrence D’Oliveiro wrote:

> On Thursday, June 23, 2016 at 11:58:01 PM UTC+12, Jon Ribbens wrote:
>> I seem to recall that Java originally insisted that only booleans
>> (excluding even Booleans, which are a different thing because of
>> course they are) could be checked for truth and it was one of
>> Java's significant warts.
> 
> Java’s wart was it didn’t implement Booleans the way they were done in
> Pascal. That wouldn’t have been a wart.

Oh? How are Java booleans different from Pascal booleans?

Are you referring to "boxed" booleans, i.e. native bools in an object
wrapper?





-- 
Steven
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list