Hacker News new | ask | show | jobs
by huhtenberg 1907 days ago
No doubt blatantly ripped off the venerable print_r :P
1 comments

Nope, 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-...).