Scryer-prolog: Question about Debug trait

Created on 25 Apr 2020  路  4Comments  路  Source: mthom/scryer-prolog

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

Most helpful comment

Yes, please do.

All 4 comments

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.

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.

Yes, please do.

Could be closed now then?

Was this page helpful?
0 / 5 - 0 ratings