formatting

Pages: 1234
Jun 24, 2012 at 3:07am
Fair enough, but to me, it's like doing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

#define FUNCTION int
#define MAIN main()
#define BEGIN {
#define RETURN return
#define END }
#define PRINT std::cout << 

FUNCTION MAIN
BEGIN
        PRINT "hello, world";
        RETURN 0;
END

I just don't see the point. The language has those keywords for a reason. Unless you're using non-standard compiler keywords or a non-standard compiler (both things you should never be doing) I don't see the point.

p.s. The Windows API is ugly as sin IMO; no-one should use it as a reference for good conventions.
Last edited on Jun 24, 2012 at 3:08am
Jun 24, 2012 at 3:23am
I know that Winapi is crap, and even though it is a mess, i dont regret learning it because i know why its effed up and it has taught me how to work with terribly documented mess (no names for types in an api). CreateWindowEx has 13 parameters .

CreateWindowEx( UINT,LPCSTR,LPCSTR,UINT,UINT,INT,INT,INT,INT,HWND,HWND,HINSTANCE,LPVOID);

and none of those types have an alias to tell the programmer what to put inside of it without looking at documentation.
Last edited on Jun 24, 2012 at 3:26am
Topic archived. No new replies allowed.
Pages: 1234