by Nycto · 7y ago · 0 comments
1. Type erasure
2. Using sealed classes requires instantiation, while the Rust version is zero overhead.
There is no need to access type information at runtime here.