FoxySheep icon indicating copy to clipboard operation
FoxySheep copied to clipboard

Parse ? and ??

Open rocky opened this issue 4 years ago • 1 comments

Shouldn't these get converted to Information[]?

rocky avatar Dec 26 '20 02:12 rocky

They are tricky, because they are evaluated in a nonstandard and inconsistent way in Mathematica. I and other Mathematica syntax experts I have spoken with are inclined to treat them as not part of the language proper. Rather, they are an interface to the UI.

Officially, ? and ?? are only supposed to be used at the beginning of a line, a syntactic requirement unique to those two sigils. If you treat them as Information[], I would relax that requirement. Just make sure you consider what consequences there are, if any, when you use them inside another expression rather than at the beginning of a line.

rljacobson avatar Jan 21 '21 21:01 rljacobson