3 ms·
Am I missing something or is this a lot of words to describe the equivalent of the JVMs instanceof / type casting operator?
by MrBuddyCasino 2y ago
Am I missing something or is this a lot of words to describe the equivalent of the JVMs instanceof / type casting operator?
- neonsunset 2y agoIt is. What's with the languages and their communities trying to reinvent worse wheel and label it with a new word all the time? if (thing is IFasterThing ft) { ft.FastPath(arg1, arg2); }
- blev 2y agoThe author’s mistake was assuming that interfaces are unique to Go. I think it’s still a helpful article as someone who works frequently with interfaces because, while I “discovered” the interface upgrade idea on my own, I had never considered the proxy problem.
- philosopher1234 2y agoGo’s interfaces are unique in that they are structural, which makes this problem more difficult to solve.