Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for evaluation (0.15 sec)

  1. doc/go1.17_spec.html

    However, the order of those events compared to the evaluation
    and indexing of <code>x</code> and the evaluation
    of <code>y</code> is not specified.
    </p>
    
    <pre>
    a := 1
    f := func() int { a++; return a }
    x := []int{a, f()}            // x may be [1, 2] or [2, 2]: evaluation order between a and f() is not specified
    m := map[int]int{a: 1, a: 2}  // m may be {2: 1} or {2: 2}: evaluation order between the two map assignments is not specified
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top