# Lists for built-in functions that can work without brackets

I just noticed that Exit and Quit can work without brackets i.e. a single

Exit


or

Quit


will quit the kernel. Quite surprising!

This isn't mentioned in the document of them. Is there a list for functions with this feature?

Well, I admit I asked this question mainly to show the discovery above :D

• Pi and E and EulerGamma though you could argue these are constants (and boringly return themselves). I'd look for functions that take no arguments, though I can't imagine there are many interesting ones that aren't constants. – barrycarter Dec 1 '14 at 16:31
• These have been mentioned before and they came as quite a surprise to me. Following standard syntax these should be Exit[] or Quit[]. I suspect that these were included only to reduce the frustration of new users who were entering Exit and not getting the desired effect. I have never looked for additional cases though they may exist. – Mr.Wizard Dec 1 '14 at 18:29
• They work without brackets when it's the only input to the cell, not when they are part of any expression though. Suggesting this is some sort of ancient flow control loophole, I dunno. – swish Jan 18 '17 at 7:03

Just noticed Return can work without brackets when it's inside a dialog: