Open bamarsha opened 2 years ago
I would like to write:
Complex(1.0, 0.0)! Complex(1.0, 0.0)::Real GetArray()[i]
But because of operator precedence, this is invalid syntax, and I have to instead parenthesize the calls:
(Complex(1.0, 0.0))! (Complex(1.0, 0.0))::Real (GetArray())[i]
Big +1 to that. Grabbing named items out of a UDT value returned by a function or operation is a fairly common use-case, and currently is a bit awkward due to the extra ()s required.
()
I would like to write:
But because of operator precedence, this is invalid syntax, and I have to instead parenthesize the calls: