News for hackers. Stuff that matters.
Re:Switching from C++ to Rust by kaba0 on Tuesday March 14, 2023 @05:45AM (#35149180)
The Visitor pattern, which is a must in certain niches is exactly analogous to pattern matching over a sum type, and I am fairly certain that I can objectively say that the latter is a million times more readable and maintainable.

It doesn’t make OOP obsolete, though, at all. Certain other areas are better expressed as hierarchies, e.g. GUI nodes.

There are no comments on this comment yet.