mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 05:43:53 +01:00
update readme
This commit is contained in:
parent
17e7ecdd43
commit
3cd8dc02d2
@ -6,7 +6,7 @@ Mers is a simple, safe programming language.
|
|||||||
cargo install mers
|
cargo install mers
|
||||||
```
|
```
|
||||||
|
|
||||||
# examples
|
## examples
|
||||||
|
|
||||||
```
|
```
|
||||||
"Hello, World!".println
|
"Hello, World!".println
|
||||||
@ -37,7 +37,7 @@ We create a function using the `->` syntax, then assign it
|
|||||||
to the `say_hello` variable.
|
to the `say_hello` variable.
|
||||||
We then call the function with the `()` argument.
|
We then call the function with the `()` argument.
|
||||||
|
|
||||||
# safety & type system
|
## safety & type system
|
||||||
|
|
||||||
Mers is type-checked, which guarantees
|
Mers is type-checked, which guarantees
|
||||||
that a valid mers program will not crash
|
that a valid mers program will not crash
|
||||||
@ -84,7 +84,7 @@ some_number_as_string := (some_number).concat
|
|||||||
some_value := if some_string.eq(some_number_as_string) { some_number } else { some_string }
|
some_value := if some_string.eq(some_number_as_string) { some_number } else { some_string }
|
||||||
```
|
```
|
||||||
|
|
||||||
# simplicity
|
## simplicity
|
||||||
|
|
||||||
mers only has a few different expressions:
|
mers only has a few different expressions:
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ without copying the entire value.
|
|||||||
When a copy of a value is changed, it is (at
|
When a copy of a value is changed, it is (at
|
||||||
least partially) copied before mers changes it.</small>
|
least partially) copied before mers changes it.</small>
|
||||||
|
|
||||||
# more examples
|
## more examples
|
||||||
|
|
||||||
```
|
```
|
||||||
if "a".eq("b") {
|
if "a".eq("b") {
|
||||||
|
Loading…
Reference in New Issue
Block a user