News for hackers. Stuff that matters.
Re:Go Creeping In by hombre_fatal on Tuesday June 18, 2019 @10:58AM (#20213804)
Just depends on the person. Some people like to copy and paste 50 times, some people use interface{}.
Re:Go Creeping In by natefinch on Tuesday June 18, 2019 @01:54PM (#20216086)
Functions are a thing. Interfaces are a thing. I have literally never, in 6 years of full time go development, just copied and pasted code for the purpose of making it work with a different type. Nor has anyone I have worked with in that time (to my knowledge). I have seen two or three libraries written that use interface{}, but these are by far the exception.
Re:Go Creeping In by sacado2 on Friday June 21, 2019 @04:57AM (#20240962)
Just depends on your application domain. I never copy/pasted code and could count the number of times I wrote `interface{}` on a single hand.