Re:Why I Don't Like Golang (2016)
by sim_card_map on Wednesday June 12, 2019 @09:27PM
(#20171088)
Interesting. Do you have links? Or maybe a short summary why this is bad?
[ Parent
| on HN ]
It becomes very annoying and tedious to refactor when you need to change visibility. Suddenly, a single line change (e.g. changing private to public) needs an IDE to refactor it and make sure it gets all instances (which is quite ironic given that golang proponents generally shun IDEs). Now depending on how many instances changed, you would need to split up your diff for readability, or clutter your diff with needless changes.
> a single line change (e.g. changing private to public) needs an IDE to refactor it
the language comes with a rewriting tool that rewrites arbitrary expressions.
gofmt -w -r 'thing -> Thing' *.go
Still more and unnecessary effort compared to changing one word.
Re:Why I Don't Like Golang (2016)
by DaveInTucson on Friday June 14, 2019 @01:45AM
(#20180807)
The linked article discusses this in the first point:
* Changing the visibility of a variable requires changing its name, everywhere it's used.
* It also cuts contrary to some very long-standing traditions, like using all caps for global constant names, using title case for class names, and starting with lower case for most everything else.