Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
13415
on Feb 4, 2022
|
parent
|
context
|
favorite
| on:
What I'd like to see in Go 2.0
Ada does them well. They have attributes that allow for converting to and from integers and strings [1], and case statements have to be exhaustive or use a default "others" clause.
[1]
https://en.wikibooks.org/wiki/Ada_Programming/Types/Enumerat...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://en.wikibooks.org/wiki/Ada_Programming/Types/Enumerat...