From d9e1caa37e53c7dbc42b1fc652efc23a40c47c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jul 2022 19:56:53 +0200 Subject: Limit use of Hungarian notation. I don't hate Hungarian notation. It has some very nice qualities. But it also adds a lot of typing. That said, not using it feels a bit... unsafe. I might go back on this decision. We'll see. --- README | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'README') diff --git a/README b/README index b492c53..4fe5ba0 100644 --- a/README +++ b/README @@ -58,25 +58,6 @@ Hacking ~~~~~~~ Following is a summary of some coding conventions used in the project. - ... HUNGARIAN NOTATION ... - - - p = pointer - - b = bool, BOOL, int (boolean value) - - i = int - - h = handle - - l = long, (LPARAM) - - w = unsigned short, WORD, (WPARAM) - - dw = DWORD - - lvi = LVITEM - - sz = char* - - wsz = wchar_t* - - ws = std::wstring - - wso = wstring_owner - -The list above is non-exhaustive. Variables whose type is unknown (in -templates) do not need prefixes. Some very common self-explanatory -variables also do not need prefixes, e.g. len (usually size_t). - ... TYPES ... Here are some general guidelines for choosing what types to use: -- cgit v1.2.3