3 ms·
> another band-aid on top of the languages limitations Those limitations are real though, and getting in peoples way. I'd also add most language designers woul
by Hermitian909 5y ago
> another band-aid on top of the languages limitations
Those limitations are real though, and getting in peoples way. I'd also add most language designers would not consider C macros as "real" macros.
Think of abstractions as power tools, you want to use the least powerful one that solves the problem so you don't lose a hand. If you're cutting a string you pull out some scissors, if you're cutting a 10 foot thick steel rod, you grab some hydraulic shears; so it goes with abstractions.
Most people never need macros, the abstraction equivalent of hydraulic shears, because most of the time your problem isn't that difficult. That doesn't mean those problems aren't out there or that macros shouldn't exist.