Alexey Trofimenko skribis 2004-11-30 9:09 (+0300): > delimiters should have corresponding closing character, so it should be > something like
Please, stop seeing ` as a circumfix operator in this context. What you do is like saying that after . you expect a capital letter. It's a programming language, and the only definition useful is the language itself, disregarding other languages, like Perl 5 and English. In current Perl, :: is also known as '. And that's not a quoting character in that context. In an early Apocalypse, Larry said not to make the same "mistake" again because it would be hard to syntax-colour. But that doesn't quite count, as matching for editors will have to be rewritten anyway to support things like "$foo{"bar"}". > %hash`foo``bar`{$foo}[0]{$bar}=0 > or it would be *much* worse for parser than <>. Yes, that is indeed awful syntax. But fortunately, my proposal wasn't to use `` as a postcircumfix operator. > %hash"key""anotherkey"[1]=0 > %hash'key''anotherkey'[1]=0 > :key"value" > :key'value' This is just making parens/curlies optional for more operators than <<>>. > $var.<key1><key2>[1].<key3> # yikes, but still better than <<>><<>> Still hard to type. Simply put, repeated circumfix operators suck, regardless of whether they are <>, <<>>, "", '', [], {}. Juerd