Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Larsen (0.17 sec)

  1. doc/go1.17_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]) { … }
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top