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

They clearly want an enum/sum type which an array of structs (which is the trivial solution they started at) doesn't provide.

You're seeing someone try to address their issues with X and suggesting "here's how you use X." It doesn't track.




Nope, I'm saying don't use X at all, because enums are not the right thing to use to solve this problem. This solution of magic comments and a precompiler is worse than not using enums at all.




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

Search: