3 ms·
No doubt blatantly ripped off the venerable print_r :P
by huhtenberg 6y ago
No doubt blatantly ripped off the venerable print_r :P
- masklinn 6y agoNope, because unlike print_r dbg! returns the input as-is, so you should be able to wrap any expression in dbg! in-place, and just get debug output. According to the RFC, the direct inspiration for dbg! is Haskell's traceShowId (http://hackage.haskell.org/package/base-4.10.1.0/docs/Debug-Trace.html#v:traceShowId http://hackage.haskell.org/package/base-4.10.1.0/docs/Debug-...).