So, how wrapping quotation marks are handled:
1. Single quotation marks around value have no effect –
"test"is displayed as
test.
2. Double quotation marks add some ‘cool’ quotation marks in the end of the string – so
""test""becomes
test"".
3. Tripple quotation marks actually give those bloody single quotation marks around value –
"""test"""becomes
"test"
Note, that this applies only to quot. marks that ‘wrap’ the value, i.e. are at the start and the end of value. Quot. marks in the middle of value are displayed ‘as-is’, e.g.
test "that" stringis displayed as
test "that" string(identical).
I’m not that sure I want to know of reasons why it’s made so.
No comments:
Post a Comment