We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following program:
function f(): string { "mystring" } output relation X(x: string) X("${f}").
yields this output:
X: X{.x = "<closure: f, captured_args: ()>"}: +1
Of course, what I meant was:
function f(): string { "mystring" } output relation X(x: string) X("${f()}").
which outputs as expected:
X: X{.x = "mystring"}: +1
I think that the compiler should be less willing to convert function references to strings this way.
The text was updated successfully, but these errors were encountered:
This was meant as a useful debugging feature, but I can see how it is confusing.
Sorry, something went wrong.
Could be a warning
I don't think this should be implicit behavior at all, if anything it should be an explicitly-called method on functions
We can keep this behavior in debug printing (pring::debug() and ddlog_std::to_string_debug()).
pring::debug()
ddlog_std::to_string_debug()
No branches or pull requests
The following program:
yields this output:
Of course, what I meant was:
which outputs as expected:
I think that the compiler should be less willing to convert function references to strings this way.
The text was updated successfully, but these errors were encountered: