From 9dc3982c23b8db7845d18b3d2fe92308fede7669 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Sat, 19 Jul 2014 12:13:39 -0700 Subject: [PATCH] Updated NEP 1 : Style Guide for Nimrod Code (markdown) --- NEP-1-:-Style-Guide-for-Nimrod-Code.md | 35 +++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/NEP-1-:-Style-Guide-for-Nimrod-Code.md b/NEP-1-:-Style-Guide-for-Nimrod-Code.md index 81b7646..5cedd54 100644 --- a/NEP-1-:-Style-Guide-for-Nimrod-Code.md +++ b/NEP-1-:-Style-Guide-for-Nimrod-Code.md @@ -118,4 +118,37 @@ General - Use of extra whitespace for alignment is discouraged. This is not necessarily because such a alignment is bad, but because of the varying support editors have for auto-alignment of text, and the fact that manual - alignment and re-alignment can be quite time consuming. \ No newline at end of file + alignment and re-alignment can be quite time consuming. + + Incorrect: + + ```nimrod + type + WORDBOOL* = int16 # XXX: not a bool + CALTYPE* = int + CALID* = int + CCHAR* = char + TCOLORREF* = COLORREF + WINT* = int32 + PINTEGER* = ptr int32 + PBOOL* = ptr WINBOOL + LONGLONG* = int64 + PLONGLONG* = ptr LONGLONG + LPLONGLONG* = ptr LONGLONG + ``` + + Correct: + ```nimrod + type + WORDBOOL* = int16 # XXX: not a bool + CALTYPE* = int + CALID* = int + CCHAR* = char + TCOLORREF* = COLORREF + WINT* = int32 + PINTEGER* = ptr int32 + PBOOL* = ptr WINBOOL + LONGLONG* = int64 + PLONGLONG* = ptr LONGLONG + LPLONGLONG* = ptr LONGLONG + ``` \ No newline at end of file