Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for f3 (0.03 sec)

  1. doc/go_spec.html

    }
    
    switch x := f(); {  // missing switch expression means "true"
    case x < 0: return -x
    default: return x
    }
    
    switch {
    case x < y: f1()
    case x < z: f2()
    case x == 4: f3()
    }
    </pre>
    
    <p>
    Implementation restriction: A compiler may disallow multiple case
    expressions evaluating to the same constant.
    For instance, the current compilers disallow duplicate integer,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top