Hacker News new | ask | show | jobs
by mbnull 1714 days ago
unless errorlevel is exported as ErrorLevel you can only do so inside the declaring package.
1 comments

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.

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