[pro] [Q] naming convention

Didier Verna didier at lrde.epita.fr
Thu Apr 5 08:10:34 UTC 2012


Pascal Costanza wrote:

> ...except I would like to use the name 'while for the macro, and some
> other name for the function (while/f, or so). Any suggestions? 
> Everything I can come up with is kind of ugly...

  Exactly. There's the Other Pascal (tm)'s suggestion to use a star,
which I thought of as well (except that I'm using that convention for
something else). DEF(INE)? vs. MAKE doesn't work because I'm not doing
any kind of instantiation. I also thought of FROBF vs. FROBM but a
trailing F doesn't get the same historical meaning as in e.g. printf. I
could also use FFROB / MFROB, FROB / DO-FROB, or hell, COMPILE-TIME-FROB
/ RUN-TIME-FROB, but yuck :-/

Maybe I'll retract my current use of * and follow PB's idea. Or maybe
I'll finally move back to compiler macros (see next message).

-- 
Resistance is futile. You will be jazzimilated.

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com




More information about the pro mailing list