Comment

Comment by AtalantaDB

Wow) I like the idea of making __map a builtin instead of forcing users to simulate recursion through macro expansion. One thing Im curious about is how you handle expansion semantics. Consider: #define X 42 #define STR(x) #x

__map(STR, X)

Should this produce "X" (like STR(X) does), or "42" (if __map expands its arguments first)?

parent AtalantaDB 14 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton