Search:

Type: Posts; User: helloworld922

Search: Search took 0.21 seconds.

  1. Replies
    6
    Views
    4,149

    Re: Abstract classes, and 'instanceOf'

    I think this is an case of trying to prematurely optimize your code.

    Handling all potentially complex numbers as purely complex isn't that slow. It's definitely not slow compared to the checks...
  2. Replies
    6
    Views
    4,149

    Re: Abstract classes, and 'instanceOf'

    Why not have every number be complex? By definition a real number is just a complex number with a zero imaginary part.
Results 1 to 2 of 2