Re:C23 is finished: Here is what is on the menu
by AlbertoGP on Friday August 05, 2022 @09:04AM
(#32355515)
> “I find that there must be a balance where names are clear and unique enough while not tiring the eyes too much by making them read long boring repetitive prefixes all the time.”
I have that problem, repetitive prefixes getting in the way of reading the code, and I’ve been doing some experiments with what could be described as “local namespacing”, only inside an expression or statement, with the prefix/suffix feature of the backstitch macro in my C preprocessor:
I have that problem, repetitive prefixes getting in the way of reading the code, and I’ve been doing some experiments with what could be described as “local namespacing”, only inside an expression or statement, with the prefix/suffix feature of the backstitch macro in my C preprocessor:
https://sentido-labs.com/en/library/cedro/202106171400/#back...
For instance, writing a program with libxml2, I write:
which gets translated to and I find the first easier to read.Whether that’s the case for others, I don’t know.
A longer example from the link I wrote above, this time for libuv:
Result: