4 ms·
For code generators whose output you must or are expected to tinker with, I completely agree. For compilers, however, I do not. For example, one codebase I he
by cryptonector 8y ago
For code generators whose output you must or are expected to tinker with, I completely agree.
For compilers, however, I do not. For example, one codebase I help maintain is Heimdal, and it has its own ASN.1 compiler that generates C (and also something of an interpreted bytecode, as an option), and it's output is not even properly indented -- nobody minds because it works, and on the rare occasion I have to inspect that code, I use tools like VIM or clang to format it.
- abainbridge 8y agoIt isn't just tinkering that means the C must be readable. People need to be able to read it and understand what it does without learning F*.