Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by maleldil

6 days ago

This operator exists as a macro in rust as dbg[1]. I know this wasn't the point of your comment; I just thought it was a funny coincidence.

[1] https://doc.rust-lang.org/std/macro.dbg.html

1 comment

maleldil

Reply

MarkusQ  5 days ago

Yup.

But 1) `dbg!(·)` uses normal syntax and 2) my expository version is two characters shorter. :)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities