In an earlier discussion here, I found out about
Compute """"%string. (* string with a single character of double quote *)
It looks as if a double quote was 'escaped' or something. What is really happening here?
And are there other characters which can be escaped like this?
Two double quotes is how you escape a double quote in a string, and apart from that all other bytes are read literally until the closing double quote.
Okay, so a ""
stands for a single double quote and we can write ab"cd"ef
like
Compute "ab""cd""ef"%string.
Thanks!
Julin S has marked this topic as resolved.
why use Compute?
Just as a way to make the string appear in the info output. Is there another way?
Check
also you probably don't need %string
Last updated: Oct 13 2024 at 01:02 UTC