Join Slack
Communities
Powered by
I want to write a similar function to `requireNotN...
# reflect
t
toban
11/25/2021, 12:51 PM
I want to write a similar function to
requireNotNull(myVar)
, or but I want the variable name to appear in the exception. I could do
requireNotNull(myVar, ::myVar.name)
but I’d rather not add the extra parameter. Any ideas?
2
Views
Open in Slack
Previous
Next