Skip to content

Commit d5f60cf

Browse files
committed
#dim recommendation for types
1 parent 713d431 commit d5f60cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ or
3737
Write 1, 2, 3
3838
Do ..Method(Arg1, Arg2, Arg3)
3939
```
40+
4. We recommend to use `#dim` statement for declaration of local variables types, e.g.
41+
```
42+
#dim array as %ArrayOfDataTypes = ##class(%ArrayOfDataTypes).%New()
43+
do array.SetAt(id, "id")
44+
#dim status As %Status = $$$OK
45+
```
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

Comments
 (0)