add TCO to readme, add floats

This commit is contained in:
2020-03-09 16:13:44 +01:00
parent 704e6441ca
commit 5701d3e918

View File

@@ -112,6 +112,9 @@ function forExample(end: int): int {
``` ```
## Tail Call Optimized
Recursive tail calls are optimized at compile time.
## Statically typed ## Statically typed
KLang statically verifies the integrity of your code. These checks include: KLang statically verifies the integrity of your code. These checks include:
- Type checking - Type checking
@@ -123,6 +126,7 @@ KLang statically verifies the integrity of your code. These checks include:
### Data Types ### Data Types
- Integer "int" - Integer "int"
- Boolean "bool" - Boolean "bool"
- Floats "float"
### Examples ### Examples
You can declare types for parameters, return values and variables You can declare types for parameters, return values and variables