Skip to content

Commit a4b2a77

Browse files
committed
Indentiations
1 parent 8a125bf commit a4b2a77

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,21 @@ If (expression) {
4040
#dim status As %Status = $$$OK
4141
```
4242
This will help editor to provide better auto-complete, and eventually will be used by static checker for type informantion extraction.
43+
* Please indent blocks reasonably. We recommend to use 8, 4 or 2 spaces indentations. Pick your level, and apply consistently.
44+
```
45+
if (expression) {
46+
do ..Method(args...)
47+
set i = j + 1
48+
} else {
49+
while (condition) {
50+
write arg1, arg2, !
51+
}
52+
}
53+
```
4354
* For better readablity please insert spaces after comma in argument list, i.e.
4455
```
4556
Write 1, 2, 3
46-
Do ..Method(Arg1, Arg2, Arg3)
57+
Do ..Method(arg1, arg2, argN)
4758
```
4859
* For better readability please insert spaces around assignment. You may align several neighbour assignments according to your tastes, i.e.
4960
```

0 commit comments

Comments
 (0)