4 ms·
ack sorry, I meant how to add a debug statement to an existing pure function while still having it return the original value EDIT per comment below, I totally
by awinter-py 7y ago
ack sorry, I meant how to add a debug statement to an existing pure function
while still having it return the original value
EDIT per comment below, I totally misread this! yes exactly, traceShow ftw
You saved me another N hours
- tome 7y agoIsn't that exactly what unhammer is demonstrating?
- awinter-py 7y agooops yes
- hopia 7y agoIn principle, you wouldn't do any logging, even debug logging, in a pure function. It always returns the same output for the same input anyway. You'd just check its output.