Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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

Search: