top | item 30634074 (no title) rami3l | 4 years ago 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? discuss order hn newest zozbot234|4 years ago Enums and "sealed" classes enable closed vs. open dispatching. Static (compile-time) vs. dynamic would effectively be devirtualization.
zozbot234|4 years ago Enums and "sealed" classes enable closed vs. open dispatching. Static (compile-time) vs. dynamic would effectively be devirtualization.
zozbot234|4 years ago