4 ms·
Actually rust has the functionality of Icecream as a buildin command "dgb" and you quickly find yourself using it over print
by space_rock 6y ago
Actually rust has the functionality of Icecream as a buildin command "dgb" and you quickly find yourself using it over print
- huhtenberg 6y agoNo 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-...).
- threatofrain 6y agoAnd Julia with @show.