logoalt Hacker News

enriquto • 10/11/2024 • 1 reply • view on HN

This is a neat hack, and very well written. I felt a bit of nostalgia looking at the (classical) cpp flex to avoid repeating an identifier

   #define X(s) #s
   #define S(s) X(s)

Replies

shawnz • 10/11/2024

For the unfamiliar, what does this pattern do exactly?

➕ show 3 replies