1 parent 219d4de commit b973b4bCopy full SHA for b973b4b
1 file changed
content/posts/odin-guide.md
@@ -36,6 +36,14 @@ This is a table that hold a comparison of all fundamental types you should know
36
| type identifier | `typeid` | `Type` |
37
| null | `nil` | `null` |
38
39
+In odin types are first class, meaning types are values.
40
+This means functions are values and can be assigned like any other value.
41
+All types like `int` and `float` are of type `typeid`.
42
+
43
+```odin
44
+a: typeid = int; // a is int
45
+b: a = 1; // b is now an int
46
+```
47
48
## Loops
49
0 commit comments