update readme
This commit is contained in:
parent
ac5d29819c
commit
779ff33f8f
2 changed files with 15 additions and 0 deletions
10
README.md
10
README.md
|
@ -23,9 +23,19 @@ negatively charged towards
|
||||||
ambiguities (`if a {}` and `a{}`, v solves that with case, e.g structs Must
|
ambiguities (`if a {}` and `a{}`, v solves that with case, e.g structs Must
|
||||||
Be Properly Titled and i can't bother with that)
|
Be Properly Titled and i can't bother with that)
|
||||||
|
|
||||||
|
- function parameters must have a type always
|
||||||
|
- ifs are always statements, not expressions (can't use if as an r-value)
|
||||||
|
- no `++`, `--`
|
||||||
|
- no `match`
|
||||||
|
- no embedded structs
|
||||||
|
|
||||||
## todo
|
## todo
|
||||||
|
|
||||||
|
- `+=`, `-=`, and the rest of the gang
|
||||||
- no `for` yet
|
- no `for` yet
|
||||||
|
- no `map` yet
|
||||||
|
- no `in` yet (probably will be dropped)
|
||||||
|
- no arrays yet
|
||||||
- do we really want a type system
|
- do we really want a type system
|
||||||
- do we really want to output c
|
- do we really want to output c
|
||||||
- do we really want to output llvm
|
- do we really want to output llvm
|
||||||
|
|
|
@ -51,6 +51,11 @@ fn main(a int) int {
|
||||||
println(a.b(3).c(d))
|
println(a.b(3).c(d))
|
||||||
|
|
||||||
v()()()
|
v()()()
|
||||||
|
|
||||||
|
str := 'hello'
|
||||||
|
len := str.len
|
||||||
|
str.len = str.len + 1
|
||||||
|
// str.len += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (v Typ) voidfunc() {}
|
fn (v Typ) voidfunc() {}
|
||||||
|
|
Loading…
Reference in a new issue