Hacker News new | ask | show | jobs
by legulere 3353 days ago
Java already has simple pattern matching with exceptions (try {throw ...} catch ...). It's surprisingly ergonomic, even though it's just a hack