bartc <b…@freeuk.com> writes:
> On 10/11/2026 19:47, Tim Rentsch wrote:
>
>> bartc <b…@freeuk.com> writes:
>>
>>> Anyway, how does C get away with having 'while' both starting a
>>> loop statement, and ending one?!)
>>
>> What is it that you think C is getting away with by having both
>> while() and do/while() loop forms?
>
> Mine was a light-hearted remark. Still, it /does/ get away with
> using the same keyword for two different purposes.
>
> So you, or a compiler, encounters 'while': is that starting a new
> while-loop, or terminating a do-while loop? [...]
Easily handled with standard parsing techniques. And not even
very fancy ones.