News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by gameswithgo on Tuesday February 04, 2020 @05:49PM (#22241950)
So, being able to have a value or a reference vs everything always being a reference is a pretty massive difference. Option types instead of nulls is also a pretty large difference. Generics being better from a performance perspective is a large difference too.

As well, traits are quite a bit different than classes, but not always in a good way!

Re:Why Discord is switching from Go to Rust by Polyisoprene on Tuesday February 04, 2020 @06:47PM (#22242431)
Hopefully Java will support proper values regarding inlining and on-stack allocation for non-primitive types soon, but yes option types are a benefit in Rust as long as you’re not using any more advanced reference libraries.
Re:Why Discord is switching from Go to Rust by tene on Tuesday February 04, 2020 @06:52PM (#22242476)
Can you explain more about "advanced reference libraries", and how they interfere with the benefits of option types?