[ prog / sol / mona ]

prog


Post macros.

37 2020-08-17 18:39

>>34 no, you only see stuff like that in APL implementer circles, except they'll name their macros with single letters, and make the whole thing somehow close to APL. like check out these macro definitions in ngn/k https://bitbucket.org/ngn/k/src/7a83bc777be99c09e7f54c1dc33ef886b301b518/k.h#lines-6 which results in code like this https://bitbucket.org/ngn/k/raw/81861b762de20fc82958890e1ad0a4341b1d8468/m.c. note that this is a very idiosyncratic style of code writing.

more realistically you have Poul-Henning Kamp's style and he's notorious for using macros freely, you can see some examples of his macro style here http://phk.freebsd.dk/time/20141116/ and here http://phk.freebsd.dk/time/20151212/

40


VIP:

do not edit these