4 ms·
Indeed, for what are classes and functions but specific kinds of macro (roughly speaking); or, macros and classes as special kinds of functions.. I'd include o
by lioeters 6y ago
Indeed, for what are classes and functions but specific kinds of macro (roughly speaking); or, macros and classes as special kinds of functions..
I'd include overloading operators in that list. It can be convenient, but comes at a cost to newcomers to the codebase.
I suppose any kind of shortcut or abbreviation carries this risk, to increase the cognitive load of the reader - things they have to remember and mentally substitute the shortcuts until they become second nature.
(Oh, right, what we call "shortcut" and "indirection" are both examples of abstraction, its value and cost.)