From 28bd52fa09787cd663339d0186a36780ab4c767b Mon Sep 17 00:00:00 2001 From: Teascade Date: Mon, 28 Aug 2017 00:14:22 +0000 Subject: [PATCH] Added default values --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9c03a37..0aa6c8d 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,13 @@ There are a number of values you can assign to your variables, as of Omega 1.0, Values in Omega are strongly typed, meaning combining two different types cannot be combined, unless they are successfully cast. +Default values for these types are as follows: +- `0` for `i16`, `i32`, `i64`, `f32`, and `f64`. +- `""` for `string`. +- `false` for `boolean`. +- [`empty`](#empty) for `T?`. +- `[]` (empty array) for `T[]` + ### Conditions For the sake of glossary, conditions can simply be `true` or `false`, but in all cases where "conditions" are said, [logical operators](#logical-operators) also apply.