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

This should be handy for frameworks to do their own logic, but I would get very annoyed if I had to read code that was cluttered with tags.


Simplicity and minimalism are core values in Go, both in the language itself and the community and developers that use it, so clutter tends not to be a concern.

That aside, tags are currently in use in several ORM frameworks with a fair amount of success.


From experience you don't tend to see tags very often other than when decoding/encoding JSON. If you use an ORM maybe you use tags as well.

Other than that, their usage (at least to me after working with Go for a year now) is limited to things like Toml/YAML decoding for configuration, or (shameless plug) configuration with https://github.com/vrischmann/envconfig.




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

Search: