News for hackers. Stuff that matters.
Re:Why Go Is Not Good (2014) by pcwalton on Wednesday December 09, 2015 @11:01AM (#10704400)
> If I need to find all instances of vector addition in my code and I'm searching for '+', I'm going to have a bad time.

This is true of methods too. If you're searching for vector addition and you grep for "Add()", you're also going to have a bad time. To have a reliable code indexing scheme, you need typechecking/name resolution information, and once you have that you can easily handle operator overloading as well.

Re:Why Go Is Not Good (2014) by fixermark on Wednesday December 09, 2015 @11:07AM (#10704449)
The difference is that "Add" is not a term that many search engines will drop on the floor. When you get out of the range of plain ASCII strings, you're leaving the range of symbols you can assume your tool of choice will be indexing into search for you.

This is likely a short-term reality, but it's the current reality.

Re:Why Go Is Not Good (2014) by pcwalton on Wednesday December 09, 2015 @11:26AM (#10704597)
How many code indexing tools are in use that aren't grep/ack/ag (because you can grep for +) and don't do semantic analysis? I can't think of any. Visual Studio, DXR (what I've used), all documentation tools, etc. can all handle overloaded operators, and have been able to for years. (Hasn't Visual Studio been able to index overloaded operators for, like, at least a decade?)
Re:Why Go Is Not Good (2014) by fixermark on Wednesday December 09, 2015 @11:40AM (#10704726)
github.com
Re:Why Go Is Not Good (2014) by pcwalton on Wednesday December 09, 2015 @11:46AM (#10704795)
That's fair.

Though I've always found GitHub's code search to be less than useful in general. I think it doesn't really make sense to not have overloading because GitHub doesn't support semantic indexing in 2015, especially since you can easily just not use GitHub for code search.

Re:Why Go Is Not Good (2014) by 15155 on Wednesday December 09, 2015 @12:42PM (#10705233)
GitHub search breaks on really simple things, too:

- Queries <= 3 characters in length

- Certain common characters are totally not supported in queries - quotes, etc.

- Forks cannot be searched.

I always just clone and use a proper search tool if I know what I am looking for is in a specific codebase.