Hacker News new | ask | show | jobs
by YuechenLi 14 days ago
I would just call it a strictly worse subset of C++ with C# syntax rather than Rust, because this doesn't have Rust's memory safety or exhaustive pattern matching, and arena allocation has its own trade-offs too.
1 comments

C# 15 does have exhaustive pattern matching.
Oh, right. Thanks for reminding me, kinda embarrassing since I just implemented Result <T, E> in the new app I'm building with unions.
I chose Rust as a comparison, because C# and Rust share some of the more modern language features. But the comparison with C++ is equally fine with me, it just depends on the angle you are looking from.