-
Notifications
You must be signed in to change notification settings - Fork 21
Using Maybe instead of "UNKNOWN"? #10
Comments
How do you think this should look, concretely? One of the big advantages to the string-based approach is the simplicity of the TH splices, but I'm happy to consider other ideas. |
I was thinking of a primary API using
This would apply where I'm not happy about the extra boilerplate for each command but I'm not sure it can be much better (yes, I can abstract a bit more away, not sure it's worth it or it's much better). Probably OK? |
+1. I think having both options would be good, for a user who just wants a string (even if it's "UNKNOWN") and for a user that actually wants to check. It can be something like
|
I like this package a lot, but using "UNKNOWN" instead of Nothing means a user has to compare strings to handle this case specially. Would a variant returning
Maybe
be acceptable instead?The text was updated successfully, but these errors were encountered: