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

I wouldn’t mind type safe enums that take advantage of the good parts of Go, but the rest of the ideas are truly awful.

    enum Language {
        Arabic   `json:"ar"`
        English  `json:"en"`
        French   `json:"fr"`
        Spanish  `json:"es"`
        // ...
    } `json:"language"`
That would be useful and Go-like.




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

Search: