[Info-vax] VAX Macro to C conversion

Arne Vajhøj arne at vajhoej.dk
Thu Jul 18 22:07:54 EDT 2019


On 7/13/2019 1:51 PM, seasoned_geek wrote:
> On Tuesday, July 9, 2019 at 8:03:41 AM UTC-5, Dave Froble wrote:
>> One might also argue that C is rather prone to errors.
> 
> If you don't have a good lint tool C programmers can be viciously
> prone to error. C programmers who believe the decision operator (?:)
> is a good and readable construct, especially when nested, tend to
> introduce errors before, during and long after they are done coding.

Yes.

There are a few reasons for that:
* the operator is not very intuitive - it did become the de facto
   standard in programming languages for a long period, but today
   new languages like Scala and Kotlin has ditched the operator
   and use if else (like ALGOL)
* nesting of control structures always add complexity and there is a bad
   tradition for that ternary operator unlike other control structures
   to put it all in one line instead of multiple lines with proper
   indentation

Arne




More information about the Info-vax mailing list