Re: [dev] Coding style: why /* */ and not //?

From: Laslo Hunhold <dev_AT_frign.de>
Date: Thu, 10 Jan 2019 14:55:08 +0100

On Thu, 10 Jan 2019 08:46:51 -0500
stephen Turner <stephen.n.turner_AT_gmail.com> wrote:

Dear Stephen,

> The only issue I see with c99 code is that some of the compilers
> appear to be behind the times on c. Any reason why we wouldn’t want
> to use a newer c feature other than compatibility?

it's always about weighing convenience against freedom. Modern language
standards have picked up pace, comparable to web standards. By
voluntarily staying with a relatively simple, older version (like C99)
you don't "invest" into a new language that might turn out to be a
tough dependency in the long run. Do we really want to solely depend on
GCC And LLVM/Clang by using C11?

Using C99, it's possible to use independent compilers (e.g. scc),
because it doesn't take 5000 man hours to implement it. But language
choice is only one aspect, the other being avoiding GNU extensions.

Does this have tradeoffs? Of course! But it often makes you rethink
your algorithms and approaches, and come up with more elegant
solutions.

With best regards

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>

Received on Thu Jan 10 2019 - 14:55:08 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 10 2019 - 15:00:07 CET