advent-of-code/2020/learning/Go.md

16 lines
462 B
Markdown
Raw Normal View History

2020-12-04 19:45:03 +01:00
# Go Learning
So this will be my first time at writing some go.
Please excuse me for the ranting 😅
## WTFs
- Why is there no bitwise OR for bools?! Please what? XOR == `a != b`, but still...
- `math.Max()` only works with floats. Of course.
2020-12-05 10:48:31 +01:00
- so apparently we don't have optional parameters and defaults. Lol
- go has maps, but no native way of getting keys or values without a loop
2020-12-04 19:45:03 +01:00
## Syntax
- we constantly need to write `:=` which is annoying as hell