Skip to content

Comment on It’s not wrong that (for HN) “[facepalm emoji]”.length == 36

Comments

“[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.

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.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.