Hacker News new | ask | show | jobs
by mariusor 1714 days ago
Indeed, that was the idea behind keeping it unexported.

From an external package you can only access the explicit values and the functions that accept them as parameters. The type is opaque for the developer.

1 comments

Yeah, ok, fair point. That kinda works, but enums would be better