Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: