This commit is contained in:
mark
2023-05-27 18:31:58 +02:00
parent 3b44e5984f
commit e0f13bdb85
3 changed files with 52 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ mers has...
- the type-safety of statically typed languages
+ mers will not crash unless you `exit()` with a nonzero exit code or write flawed assumptions using the builtin `.assume*()` functions (Rust's `unwrap` or `expect`)
- the flexibility of dynamically typed languages
+ `x = if condition() { "my string" } else { 12 } // <- this is valid`
+ `x := if condition() { "my string" } else { 12 } // <- this is valid`
- "correctness" (this is subjective and I'll be happy to discuss some of these decisions with people)
+ there is no `null` / `nil`
+ all references are explicit: if you pass a list by value, the original list will *never* be modified in any way.