about the return value of store:verify
Closed this issue · 2 comments
catbro666 commented
fffonion commented
@catbro666 it makes sense, but asking user relying on the difference of false and nil is dangerous, as Lua assert()
also doesn't distinguish the two. So I would incline to keep it as is.
catbro666 commented
How about returning other values? Returning 1 and 0 in Lua land also seems a bit weird (and breaks the API):). Anyway, the difference between verification failure and error is not so critical, keeping it as is is also acceptable for me.