Using ‘switch’ to match arbitrary logic instead of string or number literals | Hacker News Reader