Sean & 🐶 is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

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. octodon.social/media/yjYuGa_nH

Alright I got tic-tac-toe working in both Go and (omg the struggle) Rust!

Here's my long blog post about it: sts10.github.io/2017/11/18/try (tl;dr Rust seems like a really cool idea, but Go seems more practical for most)

Golang repo: github.com/sts10/tic-tac-go

Rust repo: github.com/sts10/rusty-tac

Sean & 🐶 @seanlinsley

@schlink `match` in Rust is much more than a switch statement; it can be used for error handling, object destructuring, and custom pattern matching.

Rust's Iterator class is very advanced, providing functions similar to Ruby's Enumerable like `any`, `all`, `find`, `partition`, and for your blog post, `sum`: doc.rust-lang.org/std/iter/tra

· Web · 0 · 1

@seanlinsley ha alright, alright I'll make an edit for `match`.

And dammmnnnn re: sum. That's slick. Did not see that.

@schlink I'm reaching out to see if we can get that error message improved. In my personal experience I've been impressed by the number of errors that included a suggested fix 😻 twitter.com/seanlinsley/status

@seanlinsley cool!

Sum seems to work just as advertised, but separately I'm running into some logic problems with the actual tic-tac-toe game, fyi

@schlink I forget if it was an issue that you ran into, but the just-released new version makes it so `*` (de-reference) isn't needed for `+=` blog.rust-lang.org/2017/11/22/