From 779ff33f8f695c27ac36b4207b2f8f2835d34613 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 26 Aug 2019 21:57:01 -0300 Subject: [PATCH] update readme --- README.md | 10 ++++++++++ examples/hello.v | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 48a3668..77d0d0f 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,19 @@ negatively charged towards ambiguities (`if a {}` and `a{}`, v solves that with case, e.g structs Must 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 + - `+=`, `-=`, and the rest of the gang - 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 to output c - do we really want to output llvm diff --git a/examples/hello.v b/examples/hello.v index 3d16d61..48942a5 100644 --- a/examples/hello.v +++ b/examples/hello.v @@ -51,6 +51,11 @@ fn main(a int) int { println(a.b(3).c(d)) v()()() + + str := 'hello' + len := str.len + str.len = str.len + 1 + // str.len += 1 } fn (v Typ) voidfunc() {}