I'm at my string rewrite systems again. I always implemented these as rules on function arguments. For example, assume a rule is you can drop all arguments
No problem. But now assume my task is to insert a pair of formal brackets (call them
Z) everywhere in
Doable - I replace
List, run over all position pairs, replace
List back to
F, whoopsie, forgot that I can have nested
F expressions...a nuisance. Then I had the idea: Why not define on
(*Special Epic Fail*)
My question: Am I right that you can't make rules on internal functions of Mathematica at all, to protect the innocent?
(*Generic Epic Fail*)
Or is there a limited possibility? Of course, since all Mathematica is based on
List, it has to be protected at all costs, but, say, replacing all
Exp[x]=Cos[x]+I*Sin[x] on the fly doesn't look that desastrous...
(Silly, but this shows that
Protected doesn't protect against all shenanigans.)