Re:Go+: Go designed for data science
by logicchains on Sunday March 28, 2021 @12:29AM
(#26607949)
Any abstraction possible in Python can be expressed in Go just via the interface{} type, as the type of everything in Python is just interface{}.
[ Parent
| on HN ]
Re:Go+: Go designed for data science
by fauigerzigerk on Sunday March 28, 2021 @04:41AM
(#26608858)
No, that's not true at all. Just try to create an OrderedMap that supports the same abstract interface as Go's built-in map type, or try to implement a decimal floating point type that supports the same operators as the built-in binary floating point type. It's not possible.
Re:Go+: Go designed for data science
by DangitBobby on Sunday March 28, 2021 @02:31AM
(#26608454)
Whether something can technically be done and whether it is good/easy/simple/etc. are totally different conversations. I'm pretty sure you can't implement a min function that works on both strings and ints in Go by using the interface{} abstraction.