From c2fadf8b8026d18c4bf355870e8aed0aaac9b78d Mon Sep 17 00:00:00 2001 From: "Daniel P H Fox (Roblox)" Date: Wed, 29 Jan 2025 11:00:29 -0800 Subject: [PATCH] Update note around nested structure = --- docs/syntax-structure-matching.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/syntax-structure-matching.md b/docs/syntax-structure-matching.md index f89176d..94922c9 100644 --- a/docs/syntax-structure-matching.md +++ b/docs/syntax-structure-matching.md @@ -172,9 +172,11 @@ foo, bar = data[1], data[2] A structure matcher can be specified on the right hand side of a key, to match nested structure inside of that key. -An identifier and a structure matcher cannot be used at the same time. Exclusively one or the other may be on the right hand side. +No `=` is used, as this is not an assigning operation. -*Open question: if we add a delimiter between key and identifier, do we need a delimiter here too? Discuss in comments.* +*Open question: should we? or perhaps a different delimiter for visiting without binding? Discuss in comments.* + +An identifier and a structure matcher cannot be used at the same time. Exclusively one or the other may be on the right hand side. Illustrated with the most verbose syntax: