dequal icon indicating copy to clipboard operation
dequal copied to clipboard

Why not to compare functions?

Open eli8levit opened this issue 5 years ago • 1 comments

Hi, thanks for the lib 👏 Why don't you compare functions with function.toString()? I have a case where it could help me...

eli8levit avatar Oct 24 '19 09:10 eli8levit

personally i think that would cause more harm than good. maaaybe you could do something if the function is pure (for the same arguments it has the same return), but still would be too risky. What was your use case tho?

hasanbisha avatar Apr 19 '21 13:04 hasanbisha