Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/src/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,16 +327,16 @@ parsing `key=val` pairs inside parentheses.

* `let` bindings might be stored in a block, or they might not be, depending on
special cases:
```
# Special cases not in a block
let x=1 ; end ==> (let (= x 1) (block))
let x::1 ; end ==> (let (:: x 1) (block))
let x ; end ==> (let x (block))

# In a block
let x=1,y=2 ; end ==> (let (block (= x 1) (= y 2) (block)))
let x+=1 ; end ==> (let (block (+= x 1)) (block))
```
```julia
# Special cases not in a block
let x=1 ; end # ==> (let (= x 1) (block))
let x::1 ; end # ==> (let (:: x 1) (block))
let x ; end # ==> (let x (block))

# In a block
let x=1,y=2 ; end # ==> (let (block (= x 1) (= y 2) (block)))
let x+=1 ; end # ==> (let (block (+= x 1)) (block))
```

* The `elseif` condition is always in a block but not the `if` condition.
Presumably because of the need to add a line number node in the flisp parser
Expand Down