Skip to content

Commit

Permalink
Document nested ternary expressions being illegal
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Dec 18, 2019
1 parent 16d23a7 commit 30956bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ would expect with a C-background:
puts( "max(1,2) -> ", max(1, 2), "\n" );
puts( "max(-1,-2) -> ", max(-1, -2), "\n" );

Note that in the interests of clarity nested ternary-expressions are illegal!

## 2.7 For-loop statements

`monkey` supports a golang-style for-loop statement.
Expand Down

0 comments on commit 30956bd

Please sign in to comment.