3 ms·
I think the answer for people who want this sort of thing is to write a Go++ that compiles to Go. If it's a good enough solution then it will convince the commu
by skybrian 11y ago
I think the answer for people who want this sort of thing is to write a Go++ that compiles to Go. If it's a good enough solution then it will convince the community to move forward, at least on some features.
- nanodano 11y agoGo is still young and I think it will expand over time. I think they wanted to start with a simple language and grow it carefully. One of the biggest complaints is generics and they compare it to Java but even Java didn't have generics at first.
- skybrian 11y agoAnd how do you think Java got generics? There were experimental offshoots of Java (for example, Pizza and GJ) before Java 5. The authors went on to help design the generics in Java 5. I don't see a similar effort to improve Go, at least not yet.
- dvirsky 11y agoThere were a few attempts to do this with generics, some seem decent. But I've always found myself preferring to write a few extra lines than using such a language extension. It boils down to tool support for me. If you can't have code completion and things like gofmt, no one (well, at least not me) is going to use such a thing.