You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complex numbers have no opaque representation in Go. The real and
imaginary parts of a complex number are only accessible using the
inbuilt functions real and imag. There is also no agreed upon standard
for representing complex numbers in other data formats like JSON or
YAML. Most encoders will simply write strings in the form "1+2i". I
think the safest thing to do for now is to represent complex numbers
with top, and adjust this in future if needed.
Fixes#2661
Change-Id: Ibdcbf04a535490a4936323b37c79eec12bbd822c
Signed-off-by: Thomas Way <[email protected]>
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1170115
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments