Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> imagine being able to insert `print(a)` into your program to see what's in the `a` variable at a specific time. Hey, I know that's not pure, but it's still damn useful.

In Haskell that’s Debug.Trace.traceShow. You can use it in pure code too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: