docs: expand method-calls documentation with setters and operator sections, add is operator note to syntax page

This commit is contained in:
Bob Nystrom
2013-12-21 17:15:30 +00:00
parent d9255666f4
commit 14b6eb04d2
2 changed files with 46 additions and 16 deletions
+9
View File
@@ -68,4 +68,13 @@ Identifiers are similar to other programming languages. They start with a letter
Identifiers that start with underscore (`_`) are special in Wren. They are used to indicate fields in [classes](classes.html).
**TODO: Move this somewhere else:*
### The `is` operator
The `is` keyword can be used as an infix operator in expression. It performs a
type test. The left operand is an object and the right operand is a class. It
evaluates to `true` if the object is an instance of the class (or one of its
subclasses).
**TODO: blocks, assignment, functions, lists, maps**