4 ms·
I'm generally sympathetic to Ada and its design decisions, as compared against C, but on this point I agree. C's braces syntax is at least as readable. If anyth
by MaxBarraclough 5y ago
I'm generally sympathetic to Ada and its design decisions, as compared against C, but on this point I agree. C's braces syntax is at least as readable. If anything I'd say it's more readable as there's an immediately obvious visual symmetry between the two brace symbols.
I also prefer the C++/modern C approach to declarations, where local variable declarations can be freely intermixed with other statements. Ada uses a noisier declare/begin/end syntax. [0][1]
[0] https://stackoverflow.com/a/59192530/ https://stackoverflow.com/a/59192530/
[1] https://www.radford.edu/~nokie/classes/320/declareblocks.html https://www.radford.edu/~nokie/classes/320/declareblocks.htm...