3 ms·
I wish somebody could bring Walter into C standard committee
by baybal2 8y ago
I wish somebody could bring Walter into C standard committee
- WalterBright 8y agoI remember when C added function prototypes. It was an unmitigated and welcome improvement. If I was to add two features with the most impact, simple to implement, and no backwards compatibility issues, it would be: 1. phat pointers for arrays 2. nested functions (Nested functions have a surprising ability to untangle ugly control flow, including getting rid of most uses of goto's.)
- anticensor 8y agoThey do not want to break single-pass compilers. Nested functions with no forward declarations will require a multi-pass compiler. I think your D compiler is multi-pass already.
- naasking 8y ago> They do not want to break single-pass compilers. Nested functions with no forward declarations will require a multi-pass compiler. Why is that exactly?
- WalterBright 8y agoNested functions are done in one pass. As you might infer, they cannot be forward referenced within the function.