Hacker News new | past | comments | ask | show | jobs | submit login

There must be something I don't get. What is the advantage of creating an Enum class to store relationships rather than just using a dictionary or namedtuple? (Arguably) readability? I mean, I see it works but fail to grasp the advantage.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: