Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Othman (0.17 sec)

  1. doc/go1.17_spec.html

    </p>
    
    <h4 id="Type_switches">Type switches</h4>
    
    <p>
    A type switch compares types rather than values. It is otherwise similar
    to an expression switch. It is marked by a special switch expression that
    has the form of a <a href="#Type_assertions">type assertion</a>
    using the keyword <code>type</code> rather than an actual type:
    </p>
    
    <pre>
    switch x.(type) {
    // cases
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    <pre>
       x        y    min(x, y)    max(x, y)
    
      -0.0    0.0         -0.0          0.0    // negative zero is smaller than (non-negative) zero
      -Inf      y         -Inf            y    // negative infinity is smaller than any other number
      +Inf      y            y         +Inf    // positive infinity is larger than any other number
       NaN      y          NaN          NaN    // if any argument is a NaN, the result is a NaN
    </pre>
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top