Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curly quotes are referred to as “smart quotes”, this is not entirely right #5857

Closed
p6rt opened this issue Dec 4, 2016 · 5 comments
Closed
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded

Comments

@p6rt
Copy link

p6rt commented Dec 4, 2016

Migrated from rt.perl.org#130260 (status was 'resolved')

Searchable as RT130260$

@p6rt
Copy link
Author

p6rt commented Dec 4, 2016

From @AlexDaniel

Code​:
say �hello

Result​:
===SORRY!=== Error while compiling -e
Unable to parse expression in smart single quotes; couldn't find final "�"
at -e​:1
------> say �hello�<EOL>
  expecting any of​:
  argument list
  smart single quotes
  term

From this article https://en.wikipedia.org/wiki/Quotation_mark (perhaps not the best reference, but still)​:

�The "smart quotes" feature in some computer software can convert vertical quotation marks to curly ones�

�Curved and straight quotes are also sometimes referred to as smart quotes (���) and regular quotes ("�") respectively; these names are in reference to the name of a function found in several word processors that automatically converts straight quotes typed by the user into curved quotes, attempting to be "smart" enough to determine which typed quotes are opening and closing.�

There is nothing �smart� about these quotes in our case. In fact, I type these quotes directly and am somewhat pissed off by the message (these quotes did not get into my code accidentally because some software decided to change them).

I suggest to refer to them as �curly quotes�, this is perhaps the best way (other ways would be �book� and �typographic�, but again this is a bit off).

@p6rt
Copy link
Author

p6rt commented Dec 5, 2016

From @AlexDaniel

Done in rakudo/rakudo@0ba7733

I think a test will not hurt? For example, it can check that the word “curly” is in the error message. These series of tickets are focused on making things less confusing for newcomers if they stumble upon curly quotes, so I guess ensuring that we clearly indicate that these quotes are not regular is a good idea.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2016

From @zoffixznet

On Sun, 04 Dec 2016 17​:20​:48 -0800, alex.jakimenko@​gmail.com wrote​:

Done in
rakudo/rakudo@0ba7733

I think a test will not hurt? For example, it can check that the word
�curly�
is in the error message. These series of tickets are focused on making
things
less confusing for newcomers if they stumble upon curly quotes, so I
guess
ensuring that we clearly indicate that these quotes are not regular is
a good
idea.

Tests added​: https://rt-archive.perl.org/perl6//Public/Bug/Display.html?id=130260

@p6rt
Copy link
Author

p6rt commented Dec 12, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Dec 12, 2016
@p6rt
Copy link
Author

p6rt commented Dec 12, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded
Projects
None yet
Development

No branches or pull requests

1 participant