Hacker News new | ask | show | jobs
by chrismorgan 288 days ago
> ā€œ[facepalm emoji]ā€.length

Are there any even mildly-popular languages that use, or allow, curly quotes for strings? I’d kinda like there to be at least one.

2 comments

Perl has quote operators which come close, but they start with a letter followed by your choice of delimiter:

  my $string1 = q{for example};
  my $string2 = q<angle brackets>;
  my $string3 = q/or any other symbol/;
Like as delimiters? Ruby kind of does, in that:

  %{hello, world!}
is one way to write a string literal.