Hacker News new | ask | show | jobs
by ferd 221 days ago
Good point. In Java and many other languages you can opt out instead... which might make a big difference. Is it more of a "cultural" thing?... again, many frameworks encourage it by design, and so do many courses/tutorials... so those devs would be happy to put "virtual" everywhere in C++
2 comments

Kotlin switches that back to opt in-- they did as a specific design level thing learning from their observation of how to improve java.
heh, i have seen programmers using virtual everywhere, because they were lazy to use declspec(dll_export) on windows system :)