|
|
|
|
|
by harry8
2119 days ago
|
|
Sorry no. That's not for you in particular that's just a general comment on macho C, which I think we've all seen. int abc(int a, int b, int c)
{
}
I can do postincrement. I learned C the macho way. We all still have to read that crap. Now I know better when I'm writing it. I strongly disagree that a = *stack--;
*++stack = b
is better in any way beyond "I'm a macho C guy" than a = pop_int();
push_int(b);
https://en.wikipedia.org/wiki/Duff%27s_deviceIt's fun when you first see it. Sure. |
|
I agree with saagarjha, there is nothing unclear or "crap" about using basic operators in an idiomatic way.