2 ms·
I felt like you did and I totally get it it. It isn’t what it seems like, though. It’s actually very pragmatic and once you embrace it, it makes writing and re
by steve_adams_86 3y ago
I felt like you did and I totally get it it. It isn’t what it seems like, though.
It’s actually very pragmatic and once you embrace it, it makes writing and reasoning about Go much easier than you’d expect.
The way you write Go isn’t like most languages I’ve encountered. You write a lot of local variables which typically come from well-named structs and functions, so keeping track of what’s what is extremely low effort. Tracing what something is happens very naturally, and arguably easier because there’s less data to parse.
It’s counter intuitive, but I was extremely resistant to it and now I like it (when writing Go) quite a bit. I don’t do this in other languages I write (like TypeScript or Rust); it’s definitely a Go-ism.