Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would genuinely love to hear your specific complaints about Go's syntax.


anal_reactor started with "once I read on 4chan". that's all you should need to know to skip this entirely


My first problem is "where the fuck is this function defined" and then "what is this type actually". Answering these two questions for random line in random code is surprisingly difficult.


> what is this type actually

Do you mean that you don't know what type a certain variable has? If so, just add `theVariableName = false` and try to compile it (or just `go vet ./path/to/folder` from the repo root) and the error message will tell you the type. Same as with every other strongly typed language.


Or if he was to use any kind of decent text editor, he could also just place his mouse over the variable and see the type it has.

Then comes the hard part "where is it defined"... he could even press "command" and then click on it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: