logoalt Hacker News

thfuran • yesterday at 9:13 PM • 0 replies • view on HN

The switches with defaults are both switching over a String with only literal cases. That can't be exhaustive without a default, and switch expressions must be exhaustive.