4 ms·
Interesting coding style with too much whitespace. Is it some standardized pattern? I found something similar in the code written by John Carmack.
by pknerd 8y ago
Interesting coding style with too much whitespace. Is it some standardized pattern? I found something similar in the code written by John Carmack.
- benzoate 8y agoTo my eyes this seemed like a completely normal amount of whitespace. The only thing I personally prefer that you would reasonably reduce is moving the left block delimiter from its own line (But left block braces being on their own line is fairly common for C/C++ projects afaik)
- fjsolwmv 8y agoAllman style. More popular in the error before pretty printing editors, to help visualize the blocks.
- sigjuice 8y agoThis is the usual amount of whitespace. A couple of examples https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/pid.c?h=v4.19-rc1 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... https://github.com/apple/darwin-xnu/blob/master/libsyscall/mach/mach_vm.c https://github.com/apple/darwin-xnu/blob/master/libsyscall/m...