Reorganize the language guide.
- Rename "Expressions" -> "Method Calls". - Organize "Types" and "Language" into a single linear narrative. - Mobile-specific navigation to handle the longer guide. - Rename "Fibers" -> "Concurrency". - Get rid of duplicate stuff about signatures in "Classes". - Add next/prev links to each page in the guide. - Move "Contributing" and "Community" up to the top level. - Move the precendence table to a separate "Grammar" page. - Lots of other little stuff.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
^title Variables
|
||||
^category language
|
||||
^category guide
|
||||
|
||||
Variables are named slots for storing values. You define a new variable in Wren
|
||||
using a `var` statement, like so:
|
||||
@@ -67,4 +67,12 @@ assigned value.
|
||||
var a = "before"
|
||||
System.print(a = "after") //> after
|
||||
|
||||
If the left-hand side is some more complex expression than a bare variable name,
|
||||
then it isn't an assignment. Instead, it's calling a [setter method][].
|
||||
|
||||
[setter method]: method-calls.html#setters
|
||||
|
||||
**TODO: Top-level names.**
|
||||
|
||||
<a class="right" href="functions.html">Functions →</a>
|
||||
<a href="control-flow.html">← Control Flow</a>
|
||||
|
||||
Reference in New Issue
Block a user