From eeb2c5311127406b5f985c249d8a35692f679825 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 22 Sep 2025 12:10:13 -0700 Subject: [PATCH] Refactor: Update context ref syntax and break symbol --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 62f24a5..c1f2170 100644 --- a/index.html +++ b/index.html @@ -286,14 +286,14 @@ The \`..\` operator creates an iterable numeric range for concise, traditional l ### Loop Control Control flow within loops is managed by distinct symbols: -- \`.\`: **Break**. Immediately terminates the loop. +- \`><\`: **Break**. Immediately terminates the loop. - \`>>\`: **Continue**. Skips to the next iteration. - \`^\`: **Return**. Exits the parent block, not just the loop. \`\`\`javascript (0..10 -> i) * { - (i == 2) ? { >> } // Skip 2 - (i == 5) ? { . } // Break at 5 + (i == 2) ? { >> } // Skip 2 + (i == 5) ? { >< } // Break at 5 _("i is " + i) } // Prints: i is 0, i is 1, i is 3, i is 4 @@ -319,7 +319,7 @@ The \`@\` symbol provides a reference to the current execution context, similar // This block is a portable method. // It relies on '@' to get the context. loggable: { - logId: { _("ID is: " + @.id) } + logId: { _("ID is: " + @id) } } user: { id: 101, log: loggable.logId }