<p>Am 11.10.2015 18:34 schrieb "Martin Frb" <<a href="mailto:lazarus@mfriebe.de">lazarus@mfriebe.de</a>>:<br>
><br>
> On 11/10/2015 16:14, Sven Barth wrote:<br>
>><br>
>> Am 11.10.2015 15:56 schrieb "MohsenTi" <<a href="mailto:mohsen.timar@gmail.com">mohsen.timar@gmail.com</a>>:<br>
>> ><br>
>> > Hi everybody<br>
>> ><br>
>> > I add new feature to FPC compiler to simplify programming.<br>
>> > this is While - Otherwise working like While - Else in python and has backwards compatibility.<br>
>><br>
>> Nice idea with the otherwise. I first thought that this would break case-statements that use otherwise instead of else, but then I remembered that the case-label-blocks can and IMHO should be terminated by ; anyway. At least problems can be easily circumvented.<br>
><br>
> "should", but they do not have to, at least not the last one before the otherwise</p>
<p>I know and that's something I'm probably going to be wondering about for all eternity -.-</p>
<p>> why not a new keyword?</p>
<p>I'm not a fan of adding new keywords for something like this...</p>
<p>> while bool do<br>
> foo()<br>
> afterwards [do] // or even "then" would make sense (from english reading perspective)<br>
> bar();</p>
<p>That "then" is a great idea! That would definitely not break anything and it would make sense indeed:</p>
<p>=== code begin ===</p>
<p>while bool do<br>
foo<br>
then<br>
bar;</p>
<p>repeat<br>
foo;<br>
until bool then<br>
bar;</p>
<p>=== code end ===</p>
<p>Regards,<br>
Sven</p>