Skip to content

Commit e597475

Browse files
committed
syntax more
1 parent 826369e commit e597475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapters/SyntaxNutshell/SyntaxNutshell.pillar

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,5 +471,5 @@ Once a method has been annotated with a pragma, the annotations can be collected
471471
- A cascaded message send is a sequence of messages sent to the same target, separated by semi-colons: ==OrderedCollection new add: #calvin; add: #hobbes; size >>> 2==
472472
- Local variables declarations are delimited by vertical bars. Use ==:= == for assignment. ==\|x\| x := 1 ==
473473
- Expressions consist of message sends, cascades and assignments, evaluated left to right (and optionally grouped with parentheses). Statements are expressions separated by periods.
474-
- Block closures are expressions enclosed in square brackets. Blocks may take arguments and can contain temporary variables. The expressions in the block are not evaluated until you send the block a value (==value==, ==value:==, ==value:value:==, ...) message with the correct number of arguments. ==[ :x | x + 2 ] value: 4==
474+
- Block closures are expressions enclosed in square brackets. Blocks may take arguments and can contain temporary variables. The expressions in a block are not evaluated until you send the block a value (==value==, ==value:==, ==value:value:==, ...) message with the correct number of arguments. ==[ :x | x + 2 ] value: 4==
475475
- There is no dedicated syntax for control constructs, just messages whose sends conditionally evaluate blocks.

0 commit comments

Comments
 (0)