News for hackers. Stuff that matters.
Re:Go 1.3 is released by fulafel on Thursday June 19, 2014 @08:57AM (#7915783)
A simple preprocessor for transforming custom infix operators to method calls might do the trick here. Go comes with good libraries to make this, you wouldn't have to invent a new Go parser. There are other preprocessors that you can look at for inspiration.
Re:Go 1.3 is released by gress on Thursday June 19, 2014 @12:39PM (#7916991)
That would produce a custom language not understood by other Go users and destroy much of the benefit of the compiler reporting errors straightforwardly.
Re:Go 1.3 is released by fulafel on Thursday June 19, 2014 @12:45PM (#7917026)
Sounds very much like the incumbent popular language supporting operator overloading!