<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I personally disagree with that one because it's just fluff,
considering that "nothing" is equivalent to "{ nothing }" -
usually a keyword or an intrinsic should actually do something.<br>
</p>
<p>Gareth aka. Kit<br>
</p>
<div class="moz-cite-prefix">On 27/05/2019 02:33, Ben Grasset wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAL4d7FhZSr7i8=AHV3N3QRPtsR1YJR315xPUxH_o6iyHJCnc=Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr" class="gmail_attr">On Fri, May 24, 2019 at 5:46
PM J. Gareth Moreton <<a
href="mailto:gareth@moreton-family.com"
moz-do-not-send="true">gareth@moreton-family.com</a>>
wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Whenever I come across a section of code in my own
projects where "<tt><b>else </b>;</tt>" is necessary, or
any empty branch for that matter, I put a "<tt>{ Do
nothing }</tt>" comment just to make it absolutely
clear that the block is there deliberately and so there
isn't any confusion with the syntax on first viewing;
e.g:</p>
</div>
</blockquote>
<div> </div>
</div>
<div dir="ltr">On a more general scale, it seems like it might
be a reasonable spot for an actual new case-block-specific
keyword? I can't imagine it would be an insurmountable task to
do something like make the literal word "nothing" (followed by
a semicolon) act as "sugar" in the context of case blocks for
what a lone semicolon normally does.
<div><br>
</div>
<div>For example:</div>
<div><br>
</div>
<div>type TSomeEnum = (A, B, C, D);</div>
<div><br>
</div>
<div>case BlahBlah() of</div>
<div> A: DoThingForA();</div>
<div> B: DoThingForB();</div>
<div> C: nothing;</div>
<div> D: DoThingForD();</div>
<div>end;</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>