- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for parentheses (0.07 seconds)
-
doc/go_spec.html
of an "if", "for", or "switch" statement, and the composite literal is not enclosed in parentheses, square brackets, or curly braces. In this rare case, the opening brace of the literal is erroneously parsed as the one introducing the block of statements. To resolve the ambiguity, the composite literal must appear within parentheses. </p> <pre> if x == (T{a,b,c}[i]) { … } if (x == T{a,b,c}[i]) { … } </pre>
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Apr 01 23:39:18 GMT 2026 - 287.8K bytes - Click Count (1)