Follow

wait a minute …

I just realized that 's support for unicode quotation delimiters lets you do this:

my $name = 'world';
say “<div class="intro">
I said, “Hello, $name!”
</div>”;

and have it just work exactly the way it should – _without_ needing to escape anything. glot.io/snippets/fumiz7pp9e

That's so cool!

@aeveltstra

> Unicode quotation delimiters, aye?

Yep, with the added bonus that “…” allows for the same interpolation as "…" (other delimiters have '…' semantics – that is, literal strings) and that “…” understands nesting and is only closed by the matching delimiter (which is why “I said “hi” to him” doesn't have issues with the first ” )

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.