From 45085a6dc090779226d5371af5f8948fa11a6818 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 16 Mar 2019 17:17:24 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7bf10ac6076..f3ca1860510 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ and open the path printed on the last line of that command. * Unary and binary arithmetic operators - `- x`, `not b` - - `a + b` + - `a + b`, `c or d` * Object, actor, and array literals, field/element access and update - `{c = 3; var x = 4; f() {return y}; private y = 9}` From b8610253ae29af3d80dee734e8e76f1a5f536b57 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Mon, 18 Mar 2019 23:33:34 +0100 Subject: [PATCH 2/2] Showcase exponentiation, add section for short-circuit ops and remove class instance check operator --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f3ca1860510..e2a33da9bfd 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ and open the path printed on the last line of that command. * Unary and binary arithmetic operators - `- x`, `not b` - - `a + b`, `c or d` + - `a + b`, `c ** d` * Object, actor, and array literals, field/element access and update - `{c = 3; var x = 4; f() {return y}; private y = 9}` @@ -231,6 +231,9 @@ and open the path printed on the last line of that command. - `if b ... else ...` - `switch x { case 1 ...; case 2 ...; case _ ...}` +* Short-circuit logical operators + - `b and c`, `a or d` + * While loops and iterations - `while (p()) ...` - `loop ...` @@ -248,9 +251,6 @@ and open the path printed on the last line of that command. * Type annotation - `e : T` -* Instance check - - `x is T` - * Assertions - `assert (x > 0)`