I guess there's one in every bunch

Just found this in some C++ code.

#define whilst(x) while(x)
int x = 0;
  whilst(x < 100){
    // do something with x++
  }
4 Likes

Some people are more formal. They show respect to the compiler May be :slight_smile:


Cambridge dictionary says

While or whilst ?

While and whilst mean the same when we use them as conjunctions. They both mean ‘during the time that something else happens’, or ‘in contrast with something else’. While is much more common than whilst, and whilst sounds more formal.

Methinks I like it!

doeth {...} whilst (...);
4 Likes

thatIsTheQuestion = (2B || !2B); //Shakespearian Equation

4 Likes

Forsooth! Be it not ever thus?

#define pending(x) delay(x)

ROM I/O, ROM I/O, wherefore art thou called ROM I/O?

Nice, but I think I'd prefer
#define dirtnap(x) delay(x)
Much more evocative.

If you really want to cause confusion then you have to start combining keywords to make new keywords.

#define exceptfor(x) if(!x)

Like

do {...} until (...)

There's always an alternative
#define donothingatall(x) delay(x)

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.