If you strictly follow the help file, only () { } is acceptable, but you're right, all three of those formats work.