4 ms·
I'm actually surprised Go even has a complex type in it, honestly. The places where you'd use it and the types of programs you'd use Go for don't strike me as o
by jerf 10y ago
I'm actually surprised Go even has a complex type in it, honestly. The places where you'd use it and the types of programs you'd use Go for don't strike me as overlapping much.
- vbezhenar 10y agoC supports complex arithmetic. That was a real surprise for me.
- int_19h 10y agoThis was added in C99 as part of a set of features that were all motivated by trying to make C a more viable competitor to Fortran for scientific and numeric code.
- remus 10y agoThere's been some interesting discussion about the possibility of removing them in go 2 https://github.com/golang/go/issues/19921 https://github.com/golang/go/issues/19921