From 30956bdb7adb28e50075c5fb7c89114fbe66fd99 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 18 Dec 2019 20:53:08 +0200 Subject: [PATCH] Document nested ternary expressions being illegal --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index aa874dd..ee3d524 100644 --- a/README.md +++ b/README.md @@ -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.