Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for parenthesis (0.05 sec)

  1. 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>
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
Back to top