Originally Posted by
runningwithscissors
I just find the 8 char indent more readable, that's all. I tend to use a few helper functions (maybe inlined) if it starts to drift too far to the right. I haven't had too many problems except in the case of complicated data structures, like: state->list[state->selected].blah->type.... and so on, where a line-break looks a bit ugly.
But it works alright most of the time.
My main problem is when I have to use a pre-existing library like SDL or OpenGL. Some of the functions have HUGE parameter lists and when they're called inside of a condition in a loop... Well, it gets out of control. I like to stay within the 80 char lines, but I often have to make exceptions (if it's a couple of characters out I won't wrap it).
Here's an SDL function for example:
Code:
SDL_Surface *SDL_CreateRGBSurfaceFrom (void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
Crazy...
Bookmarks