Specify that variables are static by default only at compile time in docs/gettingstarted.md
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
88d0774d30
commit
4a795b9ca0
|
@ -67,7 +67,7 @@ Types are *inferred*, which means that specifying types of variables or returned
|
|||
|
||||
<sup>Note: While primitives types (`String`, `int`, `double`, `boolean`, `float`) will be transpiled to their equivalents for the target of the transpiler, this is not the case for other types.<sup>
|
||||
|
||||
Every variable has a static type by default; it is possible to make a **non-final** variable dynamic by adding `dyn`/`dynamic` to the attributes or making it the return type:
|
||||
Every variable has a static type by default at compile time; it is possible to make a **non-final** variable dynamic by adding `dyn`/`dynamic` to the attributes or making it the return type:
|
||||
```
|
||||
dyn helloWorld = 0 # helloWorld: dyn = 0 would also work
|
||||
helloWorld = "Hello, World!"
|
||||
|
|
Loading…
Reference in New Issue