|
|
|
|
|
by mpweiher
2647 days ago
|
|
>> ... use the least powerful mechanism ... > ... providing tools ... Use ≠ provide. :-) See: The Rule of Least Power, Tim Berners-Lee https://www.w3.org/2001/tag/doc/leastPower.html See also: Rule of least expressiveness When programming a component, the right computation model for the component is the least expressive model that results in a natural program. From Concepts, Techniques, and Models of Computer Programming, Peter van Roy, https://www.info.ucl.ac.be/~pvr/book.html |
|
> The question is whether you want that sort of power in day-to-day programming
It's good to use the least powerful mechanism, no doubt. But it seems you are trying to sneak the usual "macros are too powerful for everyday use" so better be left out of a language altogether? I think when the storm comes - you'd better be equipped. Having varied ways to tackle problems (and macros are sort of linguistic abstraction orthogonal to lambda calculus/Turing machine derived toolboxes) allows for less complex solutions.