3
$\begingroup$

When debugging I found the following peculiar behaviour of Information:

$Version
Do[
    Remove["Global`*"]//Quiet;
    Information@ToExpression@str;
    Names["Global`*"]//Sow,
    {str,Alphabet[]}
]//Reap//Last//First//Column
Remove["Global`*"]//Quiet;

enter image description here

Other context is ok: enter image description here

Here is the result from my friend. enter image description here

Where are these unexpected symbols coming from?

$\endgroup$
5
  • $\begingroup$ What is your question? Why do you find this peculiar? $\endgroup$
    – lericr
    Aug 10 at 19:16
  • 1
    $\begingroup$ @lericr I'm also unsure about the question, but the creation of seemingly random symbols in the global context is indeed unexpected... $\endgroup$
    – Lukas Lang
    Aug 10 at 20:10
  • $\begingroup$ Well, they're clearly not random. My assumption is that there is work going on that inspects what you "type" for the purpose of anticipating computational needs. Totally a guess. Don't get me wrong, I wouldn't have guessed that this happens, but seeing it happen doesn't cause much surprise for me. $\endgroup$
    – lericr
    Aug 10 at 20:48
  • $\begingroup$ But I'm also pointing out that you didn't ask a question. You sort of made a judgment ("peculiar"), but that's an opinion that's not really relevant. Is your question simply "why do symbols get added to Global context?" If so, just ask. Also, a simpler example would suffice to motivate the question. But maybe you have a more specific/nuanced question. $\endgroup$
    – lericr
    Aug 10 at 20:49
  • $\begingroup$ Oh, I see you updated the post with a question. $\endgroup$
    – lericr
    Aug 10 at 20:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.