News for hackers. Stuff that matters.
Re:Things I hate about Rust, redux by rami3l on Thursday March 10, 2022 @06:30PM (#30634074)
Instead of enums, how about something similar to Scala's sealed trait syntax to tell the compiler that I'm actually doing a static dispatch?
Re:Things I hate about Rust, redux by zozbot234 on Thursday March 10, 2022 @07:33PM (#30634633)
Enums and "sealed" classes enable closed vs. open dispatching. Static (compile-time) vs. dynamic would effectively be devirtualization.