mfs' nibbles
Tag: go
2022-04-26
Have started learning Go by reading and working through The Go
Programming Language. Have finished chapter one. Thoughts
so far based on my experience with Python and Rust:
- Syntax is ok, fairly clean.
- vim-go is really useful. The automatic import management is nice.
- Surprised there was no set collection as there is in Rust and Python. Recommendation seems to be to just use a map.
- The standard library is extensive. More like Python's than Rust's.
- One example involved sharing a variable between goroutines using a mutex that was created and locked/unlocked manually. This was neat and I quite liked it.
- I tend to run all examples using
go run ...
. This makes Go more like a scripting language and allows for quick testing.
Thinking of rewriting nibble
in Go as an exercise.
tags:
go