<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 1, 2016 at 5:10 PM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:</div><div class="gmail_quote">[...]<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">> When you format this code (e.g using Ctrl+D) the result is a very ugly<br>
> syntax:<br>
><br>
> var<br>
> S: string;<br>
> B: Boolen = True;<br>
> begin<br>
> S :=<br>
> if B then<br>
> 'A'<br>
> else<br>
> 'B';<br>
> end;<br>
><br>
> And I think that it breaks compatibility with many Pascal syntax<br>
> beautifier. IMHO Iif() (or something like this) sounds better.<br>
<br>
I honestly don't care about syntax beautifiers, like at all. Most are<br>
already broken for ObjFPC anyway.</blockquote></div><div><br></div><div>But if it will be done using some syntax like this, it should use an additional identifier (inline, as it has been suggested). Anyway, this Pascal abbreviation sounds very strange, "if B is true, so A, else B". I can't see it in other place. :-D Usually we listen something like "if B is true, so something get 'A', otherwise something get 'B'".</div><div><br></div><div>You can extend the ObjFPC syntax adding this new abbreviations to make it more Pascal keyword style, but please keep some function like IfThen() (or something like this), it is very useful for who that already use it from other many languages.</div><div><br></div>-- <br><div><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>