blob: c3a91377af12ea6a37949ae1c562a699f9e76e39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Variables can be declared using the `var` keyword, however they will be mutable.
# If you would like to make the variable immutable you can use `val`
#
# Variables can not be exported and can not be referrenced accross modules.
var x = 0;
val y = 0;
x = 5; # Valid
y = 5; # Invalid
# Constants can be declared using the `const` keyword, unlike variables they can
# be exported and accessed across modules.
const FPS = 60;
pub const WIDTH = 5;
pub const HEIGHT = 17;
|