News for hackers. Stuff that matters.
Re:Building Fast Interpreters in Rust by gavia1 on Monday March 04, 2019 @07:22PM (#19307041)
You can kind of "fake" ADTs in Go with interface{} and switches, but it isn't all that nice.

Rust on the other hand with first-class ADT and pattern matching makes it a pleasure! You also have all the nice advantages of the compiler checking that all branches have been satisfied which catches a lot of bugs at compile time.

Go has it's place, and works great in those places, but I don't think this is one of them. I'm pleased we chose Rust and this feels like a great use for it!

There are no comments on this comment yet.