Example
Unique[x]
generates a new symbol, with a name of the formx$nnn
.
If so then this is not correct:
Unique[x$]
x$4639
I'd expect double $
: x$$4639
.
Question:
Is this a bug in Unique
, a documentation bug or have I missed something?
Further investigation
It only happens for single $
but I have failed to find any reason why not to use such names.
Unique /@ {x$$, x$, x}
{x$$$4694, x$4695, x$4696}
This has further consequences, some of which I consider bugs but I will stop here as those examples are enough for discussion.
Function
and this is on someone's to-do list (mine, I guess). $\endgroup$name$
symbols:DynamicModule[{x$ = .5}, {Dynamic[x], Slider@Dynamic[x$]}]
$\endgroup$