Skip to content
Discussion options

You must be logged in to vote

This is due to the way the interpreter is implemented. It is a shortcoming, I filed #61 to address your problem.

The interpreter uses the String() method to format a Mangle "constant" (value):

results = append(results, fact.String())

The String() method is implemented in a way that it will always escape characters (not the Escape call here):

s, err := Escape(c.Symbol, false /* isBytes */)

The interpreter has many shortcomings since it was only added for quick experiments.
This particular choice was done because before there were byte strings, people used strings …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khanhhua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants