I am trying to make a macro that defines a one-parameter macro for me (the reason is a veeeery long story). Here's my implementation.
\def\foo#1#2{%
\expandafter\def\csname bar#1\endcsname##1{#2}%
}
\foo{qix}{:: #1 ::}
\barqix{hi world}
Now the question. Using the #1 notation is possible but unaesthetic in my application. I would like use instead an unused macro, e.g. \PARAM . I guess for this I should be \leting \PARAM to #1, but something goes wrong if I do.
Any idea to get around this?

\foo{qix}{:: \PARAM ::}? I find this much less aesthetic, besides giving a wealth of problems with space clobbering. – egreg Feb 24 '17 at 18:18