5 ms·
Like C, Go is a small language. Given that the creators of go like its smallness and simplicity, all those features are never going to be added to Go. When Bj
by kristianp 10y ago
Like C, Go is a small language. Given that the creators of go like its smallness and simplicity, all those features are never going to be added to Go.
When Bjarne Stroustrup wanted to add OO features to C, he created C++, initially as a translator that output C. If someone wants to add features to Go, they can create a "Go++" to Go translator, with pattern matching, generics, tagged unions. Clearly it's guaranteed to be very popular! /s
- ngrilly 10y agoIt's the approach Robert Griesemer (member of the Go core team) chose to prototype implementation of operator methods in Go: https://github.com/griesemer/dotGo2016 https://github.com/griesemer/dotGo2016
- kristianp 10y agoActually it looks like he forked and modified the go compiler itself.