Re:“Clean Code, Horrible Performance” Discussion
by laserlight on Saturday March 11, 2023 @06:42AM
(#35107463)
So, you’ve been arguing for using switch statements, instead of Clean Code’s suggestion of using object-oriented polymorphism, in a context where polymorphism doesn’t exist?
[ Parent
| on HN ]
Re:“Clean Code, Horrible Performance” Discussion
by pkolaczk on Saturday March 11, 2023 @07:34AM
(#35107779)
Not at all. Not having classes is not the same as not having polymorphism. Rust supports polymorphism just fine (and one could argue its support for polymorphism is actually much more advanced than that of Java's; but that's not enough reason to use it everywhere).