3 ms·
I find the opposite is true. Having better abstractions makes the code easier to think about, and hence it's more productive. For example, D: foreach (i; 0
by WalterBright 4y ago
I find the opposite is true. Having better abstractions makes the code easier to think about, and hence it's more productive. For example,
D:
foreach (i; 0 .. 10)
{ body }
C:
for (int i = 0; i < 10; ++i);
{ body }
Which one is more better? I can speak from experience that the former is much better, much easier to read, and has fewer bugs.
C doesn't allow forward referencing. What this means in practice as people lay out the code in a source file backwards, i.e. the leaf functions come first and the top level functions come last.
This is just not the ergonomic way to write code. The public functions should be first and the private leaf functions last. The code should read top to bottom.