[fpc-pascal] IfThen() intrinsic removed

Reimar Grabowski reimgrab at web.de
Fri Feb 5 15:23:34 CET 2016


On Fri, 5 Feb 2016 12:08:57 +0100
LacaK <lacak at zoznam.sk> wrote:

> Why not just reuse C:
>    x := condition ? truevalue : falsevalue ;
> As stated before.
> May be only for {$COPERATORS ON}
> (So it will not influence Pascal language, but for those who want use 
> it, can enable this syntax using switch)

Are you new here???

1. Because it's C.
2. Because it looks like C.
3. Because it smells like C.
4. Because it behaves like C.
5. It would actually be useful for making porting C code easier.
6. No 100+ mails thread needed to discuss what the best way is to make it look pascalish and not break code.
7. Did I mention that it is C (and C++, Java, JS)?

For me that is the only syntax I would like to see (and therefore use) it as I am used to it but knowing the pascal community I refrained from participating in the thread and it's really a minor feature.

Hopefully there will never be atrocities like a+=1. ^^

Please never name the unholy language on this list again.

R.

P.S.: It's all good fun, I know that C/C++ are not for everyone.



More information about the fpc-pascal mailing list