Comment

Comment by elcomet

Enums are best when combined with a language that does pattern matching and that can warn you if you forgot a value in your case statement. Python lacks this, so there is no spectacular benefit of using enums over just a list of strings.
parent elcomet 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton