summaryrefslogtreecommitdiff
path: root/chapter17/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'chapter17/README.md')
-rw-r--r--chapter17/README.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/chapter17/README.md b/chapter17/README.md
index 1bac940b..d65ff879 100644
--- a/chapter17/README.md
+++ b/chapter17/README.md
@@ -12,6 +12,14 @@ Also allows `s.fld++` and `ary[idx]++`, and their `--` variants.
Allow pre-increment for identifiers only, for now: `--pc`.
+## Operator assignment
+
+Along the same lines as post-increment, we now allow `op=` assignment
+with semantics similar to other languages.
+
+`x += y`
+
+
## var & val
`var` can be used in the `type` position to indicate a "variable" (mutable
@@ -125,11 +133,5 @@ return i; // ERROR: Undefined name 'i'
-oper-assign +=, -=
TODO
switch
-
-
-
-
-