3 ms·
I assume portability is why the function declaration is old K&R style and not ANSI prototype style. I'm always surprised when I see K&R style in modern(ish) cod
by rootbear 11y ago
I assume portability is why the function declaration is old K&R style and not ANSI prototype style. I'm always surprised when I see K&R style in modern(ish) code. I do miss the ability to declare multiple parameters of the same type without repeating the type name, though. Oddly, several modern languages (like D) seem to think that's a feature.
- glass- 11y agoCheck vim's style guide (:help style-example in vim), you'll find a note that says: > NOTE: Don't use ANSI style function declarations. A few people still have to use a compiler that doesn't support it.
- rootbear 11y agoAmazing. I wonder what platforms those are.
- Artemis2 11y ago> I do miss the ability to declare multiple parameters of the same type without repeating the type name It's a feature Go has!
- rootbear 11y agoYes! I was pleased to see that.