tonsky.me
Read post

When You Get to Be Smart Writing a Macro

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

The post explores a smart solution for debugging in Clojure using the hashp macro, offering a more efficient alternative to println. It discusses the challenges of incorporating hashp in threading macros and presents an innovative approach to handling both thread-first and thread-last macros seamlessly. The solution involves using a probe function to differentiate between these threading contexts, resulting in a more versatile debugging tool.

    #functional-programming#clojure
May 01, 2025•3m read time•From tonsky.me
Post cover image
31 Impressions
tonsky.me's image
tonsky.me

Tonsky Blog offers insights, essays, and discussions on programming languages, software design, and ...

11 Followers

•

275 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard