4 ms·
For the single-line case, what happens for: """"""" """""""" Are those strings containing `"` and `""` or are they empty strings? Is the first case an
by jsd1982 5y ago
For the single-line case, what happens for:
"""""""
""""""""
Are those strings containing `"` and `""` or are they empty strings? Is the first case an error because the starting and ending quote counts do not match? If the number of quote chars is even, do the contents alternate between `"` and empty as the number of surrounding quotes increases?
- rawling 5y agoIt does say > A single_line_raw_string_literal cannot represent a string value that starts or ends with a quote (") though an augmentation to this proposal is provided in the Drawbacks section that shows how that could be supported. so I'd assume the odd count would lead to an error (single trailing "?) rather than a string containing ". E: I'd assume it doesn't allow empty single line strings because otherwise how do you tell the difference between that and the start of a multi line one?