Hacker News new | ask | show | jobs
by bbatha 2712 days ago
The `p` function in ruby is designed for quick pretty printing. `console.` in the browser are only* useful for debugging. Go has a `println` keyword so that you don't need to import the `fmt` package, and has a `%+v` format helper to get a pretty printed debugging friendly representation of an object.
1 comments

As a new go programmer you just saved me a bunch of time, I didn’t know about either of those.