7 ms·
I use generics on daily base! Even a basic cache requires generic support. I don't want to litter my code with castings and ifs when there exists a decent solut
by maxpert 6y ago
I use generics on daily base! Even a basic cache requires generic support. I don't want to litter my code with castings and ifs when there exists a decent solution to do all of the manual undertaking for you. That is what compilers were invented for rather than just generating plain code. You can obviously ignore them if you don't need them; but I can give you gazillion cases where not having generics and doing `interface{}` based casting makes situation messy and repeated on code rather than simpler.