6 ms·
Well, as we all know, Go does give you a way, sort of. You'd have to write basically a dynamic version using interface {}, and then write wrappers casting the v
by sixthloginorso 13y ago
Well, as we all know, Go does give you a way, sort of. You'd have to write basically a dynamic version using interface {}, and then write wrappers casting the values in and out, and possibly handing out the equality predicate.
That sucked in Java at the time, though, when you had to screw around casting Objects in your code, I don't see why people would prefer that.
- frou_dh 13y agoSurprisingly, Erik Meijer (Haskell, C#) can somewhat see the appeal of no generics and a bit of casting: 22m-31m http://www.youtube.com/watch?v=on5DeUyWDqI#t=22m http://www.youtube.com/watch?v=on5DeUyWDqI#t=22m (I give myself and Google a pat on the back for being able to remember and quickly find this!)
- Paradigma11 13y agoThanks.