You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,39 @@ but will produce inconsistent results.
8
8
9
9
## Mandatory part
10
10
11
-
1. Only "modern" syntax permitted, dotted syntax is not generally allowed (with few exceptions)
12
-
2. No short name for statements keywords allowed - use fully expanded keyword names. This same rule applie to builtin function names - they should be fully pronounced.
11
+
* Only "modern" syntax permitted, dotted syntax is not generally allowed (with few exceptions)
12
+
* No short name for statements keywords allowed - use fully expanded keyword names. This same rule applie to builtin function names - they should be fully pronounced.
13
13
14
14
## Recommended part
15
-
1. We recommend to use fully expanded keyword in lower case or capitalized. Whatever you'll select should be consistent across class or utility, i.e.
15
+
* We recommend to use fully expanded keyword in lower case or capitalized. Whatever you'll select should be consistent across class or utility, i.e.
16
16
```
17
17
If (expression) {
18
18
Do ##class(Sample).%New(initexpresion)
19
-
For i=1:1:10 {
19
+
For i=1:1:10 {
20
20
Write something, $Zversion, !
21
21
}
22
-
}
22
+
}
23
23
```
24
-
or
24
+
or
25
+
25
26
```
26
27
if (expression) {
27
-
do ##class(Sample).%New(initexpresion)
28
+
do ##class(Sample).%New(initexpresion)
28
29
for i=1:1:10 {
29
-
write something, $zversion, !
30
-
}
30
+
write something, $zversion, !
31
+
}
31
32
}
32
-
33
33
```
34
-
2. Use the reasonable name convention which is consistent across hierarchy. We recommend to use CamelCase for classes, methods and properties (e.g. `Sample.Person`, `OpenFile`, `LastIndex`, etc.), but smallCamelCase for local variables (e.g. `startDate`, `endDate`), but please be consistent and use local schea if it's different thancurrent recommendation.
35
-
3. For better readablity please insert spaces after comma in argument list, i.e.
34
+
* Use the reasonable name convention which is consistent across hierarchy. We recommend to use CamelCase for classes, methods and properties (e.g. `Sample.Person`, `OpenFile`, `LastIndex`, etc.), but smallCamelCase for local variables (e.g. `startDate`, `endDate`), but please be consistent and use local schea if it's different thancurrent recommendation.
35
+
* For better readablity please insert spaces after comma in argument list, i.e.
36
36
```
37
-
Write 1, 2, 3
38
-
Do ..Method(Arg1, Arg2, Arg3)
37
+
Write 1, 2, 3
38
+
Do ..Method(Arg1, Arg2, Arg3)
39
39
```
40
-
4. We recommend to use `#dim` statement for declaration of local variables types, e.g.
40
+
* We recommend to use `#dim` statement for declaration of local variables types, e.g.
41
41
```
42
-
#dim array as %ArrayOfDataTypes = ##class(%ArrayOfDataTypes).%New()
43
-
do array.SetAt(id, "id")
44
-
#dim status As %Status = $$$OK
42
+
#dim array as %ArrayOfDataTypes = ##class(%ArrayOfDataTypes).%New()
43
+
do array.SetAt(id, "id")
44
+
#dim status As %Status = $$$OK
45
45
```
46
-
This will help editor to provide better auto-complete, and eventually will be used by static checker for type informantion extraction.
46
+
This will help editor to provide better auto-complete, and eventually will be used by static checker for type informantion extraction.
0 commit comments