damn, Golang is picky! https://octodon.social/media/rPvteRvL9otauckN9fk
man idk, Rust is putting up way more of a fight than Golang did for me... I guess that's kind of by design though. https://octodon.social/media/yjYuGa_nH0PH-WbDscA
Alright I got tic-tac-toe working in both Go and (omg the struggle) Rust!
Here's my long blog post about it: https://sts10.github.io/2017/11/18/trying-go-and-rust.html (tl;dr Rust seems like a really cool idea, but Go seems more practical for most)
Golang repo: https://github.com/sts10/tic-tac-go
Rust repo: https://github.com/sts10/rusty-tac
@schlink Here's some nifty golang thing. structs can have attached functions.
So if i make a struct, called vector with 2 inputs of X and Y (int)
type Vector struct {
X int
Y int
}
i can attach a function, like "Add"
func (v *Vector) Add(other Vector) {
return Vector{v.X + other.X, v.Y + other.Y}
}
@schlink oh wait, you already knew, i'm tired with an headache drinking way too much pear cider. Don't mind me.. xD