Open seebees opened 1 year ago
I'd be much happier with this functionality in a user code library rather than Dafny itself. Since you mention JSON, that's a much smaller scope to handle than arbitrary Dafny values, so perhaps we can add that feature to https://github.com/dafny-lang/libraries/pull/51 as a fast-follow after getting it merged.
Summary
The
print
function is for humans to look at output.Background and Motivation
Humans enjoy whitespace. While JSON can be printed as one big string on a single line, no reasonable human wants to read this.
The Dafny
print
function stuffs everything onto a single line :( It would be so nice to have the output be easily readable.Proposed Feature
Consider
This will output
[Module_Compile.Foo.Foo(What part, am I?)]
Instead do this
Alternatives
No response