3 ms·
--I like the tabs. Tabs let everyone see the indent width they prefer. Some people get eye strain with indent width 2. This is why spaces are evil. Using spac
by foobarbaz33 3y ago
--I like the tabs.
Tabs let everyone see the indent width they prefer. Some people get eye strain with indent width 2. This is why spaces are evil.
Using spaces for indent is like hard coding the color-theme of the editor into your code file. It's simply wrong.
Tabs are perfection.
--I like the tooling surrounding it. LSP server. code formatter gofmt. Build tools to X-compile for anything.
--I like the C-style error handling. Doing a check after every action with the potential for failure. Probably the biggest turn off for most people becuase errors bleed into the main flow of the program. Maybe for things like CRUD apps it's not ideal. But for really critical fundamental things error handling should be a first class part of the flow/logic, not just something that's chucked off, hidden away. Trade offs in all things though.
- mejutoco 3y agoI like the color analogy. Using spaces is like using a green chroma screen. Using tabs is like having an alpha channel, as long as everything supports the alpha channel it is the best.
- foobarbaz33 3y agoForgot one. --I like how Go fills this little niche that no one else quite fills. Combining garbage collection while defaulting to value types. A savvy programmer has a lot of leeway to avoid creating garbage, while still "feeling" like Javascript. Sure other languages are even better for avoiding garbage, but they also don't have the care-free feeling of JavaScript. Or they might feel care free but are living in Heap City.