Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about Debug trait #393

Closed
ghost opened this issue Apr 24, 2020 · 4 comments
Closed

Question about Debug trait #393

ghost opened this issue Apr 24, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2020

Why almost all data structures like enum Addr at line don't implement the trait Debug?

@mthom
Copy link
Owner

mthom commented Apr 24, 2020

I personally lean more toward gdb-style debugging than print-style debugging, which I think is what Debug is for. But you are right, there's no reason types like Addr shouldn't derive Debug.

@ghost
Copy link
Author

ghost commented Apr 25, 2020

The Debug trait will also help when using scryer-prolog as a library. I will start the implementation of Debug trait for the data structures if it's OK.

@mthom
Copy link
Owner

mthom commented Apr 25, 2020

Yes, please do.

@XVilka
Copy link
Contributor

XVilka commented Apr 26, 2020

Could be closed now then?

@ghost ghost closed this as completed Apr 26, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants