Skip to content

Commit d40be2e

Browse files
committed
Added recommendation to use fully-qualified package in class names (#5)
1 parent 692554b commit d40be2e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ If (expression) {
3333
}
3434
}
3535
```
36-
* Use the reasonable name convention consistently across whole 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 schema if it's different than current recommendation.
36+
* We recommend to use fully qualified package name of a class (except `%Library` package)
37+
```
38+
Set obj = do ##class(Sample.Person).%New(initexpresion)
39+
```
40+
instead of
41+
```
42+
Set obj = do ##class(Person).%New(initexpresion)
43+
```
44+
* In general, use the reasonable name convention consistently across whole 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 schema if it's different than current recommendation.
3745
* We recommend to use `#dim` statement for declaration of local variables types, e.g.
3846
```
3947
#dim array as %ArrayOfDataTypes = ##class(%ArrayOfDataTypes).%New()

0 commit comments

Comments
 (0)