On Monday, 14 July 2014 at 01:32:38 UTC, Timon Gehr wrote:
On 07/14/2014 03:25 AM, fra wrote:
On Sunday, 13 July 2014 at 20:56:31 UTC, Ary Borenszweig wrote:
On 7/13/14, 8:13 AM, fra wrote:
Macros are an aberration that allow code writers to create
code
that is plan impossible to understand and mantain. Mixins can
give you pretty much the same amoun of functionality while
imposing sane limits to what can be done.
Do you really find my sample code hard to understand? Macros
looks
just like regular function definitions, only with
placeholders.
#define sizeof(x) rand()
:o)
(This is not about C macros.)
(He is still advocating macros that would not need any keyword at
the call site, and this half joke was about that.)