4 ms·
I also like a rule that states that you either put all the parameters on one line, or each one on its own separate line, but never something in between.
by realharo 10y ago
I also like a rule that states that you either put all the parameters on one line, or each one on its own separate line, but never something in between.
- exDM69 10y agoI don't think blindly following any convention is good. Sometimes it makes sense to group a few parameters, take this toy example for instance: void drawrect( Surface *surf, int x, int y, int width, int height, uint32_t color); Grouping relevant arguments just makes it a bit more legible. It's even more useful when calling the said function (assuming function with a lot of parameters, say XCreateWindow).