[Python-ideas] Updating PEP 315: do-while loops
steve at pearwood.info
Sun Apr 26 08:46:43 CEST 2009
On Sun, 26 Apr 2009 04:22:31 pm George Sakkis wrote:
> "Weird" is an understatement; I'd rather say outright misleading.
> There's nothing in "do ... while cond" that even hints that the
> condition is not checked the first time.
Well, not quite. The ellipsis is a hint that there's something unusual
going on. I agree that the meaning of the ellipsis is not intuitive,
but that's not important. There's nothing intuitive about loops in the
first place :)
I could live with ellipsis, although it's not my first preference. I'd
call it a syntactic wart, like writing a tuple of one item as
More information about the Python-ideas