Hacker News new | past | comments | ask | show | jobs | submit login

> Which in turn was inspired by Haskell s `Debug.Trace` functions [2].

According to the RFC, the only inspiration from Debug.Trace was returning the input. The only other mention of haskell in RFCs 2173 and 2361 is the rejection of `show!`.




The author of the RFC was a big Haskell user and mentioned that idea came from there.

You can't learn everything from official documents...


That might be true but I'd still want a source on that because the assertion makes no sense: aside from the value-returning property, all the overlap between dbg! and Debug.Trace is already covered by println!.

And as far as I can see Debug.Trace doesn't contain anything like dbg!: the closest would be traceShowId, which neither shows the traced expression (before evaluation) nor the location information.


> but I'd still want a source on that

Why don't you commence a formal inquiry, analyze the complete discussion history, acquire a sworn statement from Centril and report your findings here?

It seems weird to get so hung up on the word inspired... but I'm looking forward to the report!




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

Search: