LeopoldArkham / Molten

[WIP] Molten - Style-preserving TOML parser.
Apache License 2.0
40 stars 8 forks source link

Error reporting #6

Closed LeopoldArkham closed 7 years ago

LeopoldArkham commented 7 years ago

This is to discuss how error reporting should work.

Thoughts:

ehuss commented 7 years ago

I've been watching the error-chain development closely recently. I think some of the big concerns have been addressed within the past month. In particular, performance should be much better (it now lazily retrieves backtrace symbols only when needed), and memory usage has been reduced. It still has some issues and is in flux, but I don't think it would be a bad idea to try it.

I was using error-chain in my prototype, which captured the line/column in the error. I can try a PR so you can see what it might look like.

LeopoldArkham commented 7 years ago

Ah that's good news. In that case I'd definitely like to look at what you have.