Expand/Shrink

?

Definition: ? object x
Description: This is just a shorthand way of saying: print(1, x) - i.e. printing the value of an expression to the standard output.

It is typically used for quick debugging statements that will be removed before the final product is shipped.

It differs slightly from print() as it adds new-lines to make the output more readable on your screen, or wherever you may have redirected standard output.
pwa/p2js: Supported. Hardly worth mentioning really, note that (for example) ?"abc"&-1 yields {97,98,99,-1} under pwa/p2js, but {97'a',98'b',99'c',-1} on desktop/Phix. Should it be needed, the latter can be produced both in a browser and on the desktop with pp("abc"&-1,{pp_IntCh,1}), and also the former by simply omitting the options or setting pp_IntCh to 0.
Example:
?sq_add({1, 2},{3, 4})  -- displays {4, 6}
?"hello"                -- displays "hello"
Implementation: See pmain.e\DoQu() and print().
See Also: print