5 ms·
Why are spaces randomly omitted for language constructs like if and for, and reference type &s left aligned?!
by anacrolix 4y ago
Why are spaces randomly omitted for language constructs like if and for, and reference type &s left aligned?!
- ralferoo 4y agoRandomly? This author does it consistently. Some people prefer with spaces, some prefer without, most people follow the coding standards for the company / project they're working on.
- kfajdsl 4y agoWhat's wrong with left aligned & and *? I prefer it because for me it makes more sense; it is not a <type>, it is a <type> reference (or pointer). This involves different semantics than just a <type>, so it makes sense to me for the extra information to be with the type.
- mannykannot 4y agoIn other words, you are not aware of anything wrong with this code.