I want to write a similar function to `requireNotN...
# reflect
t
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?