Hacker News new | ask | show | jobs
by momothereal 1423 days ago
Because the right arm of the 'case' keyword is not actually a statement being executed, but its own syntax element to represent a pattern. It is not expecting two sets of brackets there.