3 ms·
'final' only partly relates to virtual functions, you are forgetting or ignoring the use of 'final' on classes. Also, 'virtual' functions are extremely useful
by SuperV1234 4y ago
'final' only partly relates to virtual functions, you are forgetting or ignoring the use of 'final' on classes.
Also, 'virtual' functions are extremely useful to define interfaces that separate teams can implement and consume independently.
Variants and algebraic data types are not the answer to anything, and it is not "outdated" to use 'virtual' where appropriate, despite what your other comments might imply.
- ncmncm 4y agoThere is nothing unsafe about final classes, either. Non-final classes could be risky, but not enough to worry over. Virtual functions are a mechanism that has legitimate uses but makes a poor organizational basis for a program.
- SuperV1234 4y ago> There is nothing unsafe about final classes The book agrees with that statement. If only you had taken 5 minutes to read a few pages before starting to beg strangers on the internet to not buy something that could improve their career just because one of the authors hurt your feelings sometime in the past... > Virtual functions are a mechanism that has legitimate uses but makes a poor organizational basis for a program. This is what I would consider "filler", much like the rest of your posts. Opinions presented as facts, without any sort of source, example, nuance, or elaboration.