You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently any calls to println will print the value to stdout with quotes. This includes strings, integers, etc.
For example in this snippet:
#[test]
fn test_println()
{
dep::std::println(""); // outputs {""} instead of { }
dep::std::println("A"); // outputs {"A"} instead of {A}
dep::std::println("\t"); // outputs {" "} instead of { }
}
Happy Case
The snippet outlines what should be printed and what happens instead. We do not want quotes around everything we print. The string "A" should just be printed as A.
Alternatives Considered
N/A otherwise it gets confusing with the quotations and makes it less clear to developers who are debugging. Quotations should just be used for encapsulating strings and only included in a print when they are used with escape characters.
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
Currently any calls to
println
will print the value to stdout with quotes. This includes strings, integers, etc.For example in this snippet:
Happy Case
The snippet outlines what should be printed and what happens instead. We do not want quotes around everything we print. The string
"A"
should just be printed asA
.Alternatives Considered
N/A otherwise it gets confusing with the quotations and makes it less clear to developers who are debugging. Quotations should just be used for encapsulating strings and only included in a print when they are used with escape characters.
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: