Skip to content

Support unicode string delimiters such as « » #17665

@bblfish

Description

@bblfish

The string delimiters such as """ ... """ get very confusing as soon as one has to use " in the text. For example for Signing HTTP messages one often has to produce strings like

"example-dictionary";key="foo"

In Scala this must be written as a sequence starting with 4 quotes.

s""""example-dictionary";key="$arg""""

I think everyone will agree that that is not very readable for scala
developers, and even less when showing code snippets on github
repository when filing bugs against specs.

Much more readable would be

"example-dictionary";key="$arg"»

The idea would not be to remove the triple quotes which have the advantage of
not requiring unicode input, but of adding the unicode ones for situations where
readability is important.

There are a number of other unicode quotation symbols that could be used, and I
don't want to make a decision on which of them is best, or if they should all be used, or if they should be used with different properties. But something would be better than """

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions