Dave Mitchell skribis 2004-04-15 21:56 (+0100): > If hypothetically we *are* going to have a simplfied constant-index hash > access syntax, is there any reason why we can't use a single quote (') > rather than backtick ('), akin to the Perl4-ish package separator, > ie %foo'bar rather than %foo`bar?
Yes, there is one. It is a problem that the Perl4-ish package separator causes in Perl 5 already. One that bites many coders: "Eat at $joe's" means in Perl 5: "Eat at $joe::s" would mean in Perl 6 if we used the ' for hash subscripts: "Eat at $joe{'s'}" Apostrophes are needed in text. Many languages use them to mark the absence of some letters. I don't know of any such use of the backtick, except by people new to computers who use them as if they are apostrophes :) I dislike the attempt at getting balanced quotes in ASCII that involves ` and ', but it shouldn't be a problem as that in normal use always follows whitespace or at least interpunction. > On the grounds that personally I hate the backtick :-) ... Juerd