<br><br><div><span class="gmail_quote">On 3/15/07, <b class="gmail_sendername">Georg Brandl</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thomas Wouters schrieb:<br>><br>><br>> On 3/15/07, *Raymond Hettinger* <<a href="mailto:email@example.com">firstname.lastname@example.org</a> <mailto:<a href="mailto:email@example.com">firstname.lastname@example.org</a>>><br>> wrote:<br>
><br>> My worry focuses on new-timers and SyntaxErrors. The worst part of<br>> the new user experience is encountering a SyntaxError.<br>><br>><br>> Please. I already said it would be a SyntaxError *with explanation*.
<br>> It's pretty easy to make a syntax error that goes "Did you mean 0t6065<br>> or 6065?". This would not be a syntax error handled by the parser, the<br>> tokenizer really doesn't care about leading 0's and
ast.c's parsenumber<br>> (which would be the spot to raise it) has all the necessary information.<br><br>Until now, I skipped the octal thread. Now I read this and wondered, "what the<br>hell is 0t6065 supposed to mean" and only from the context I gathered that it
<br>would be an octal literal...<br><br>Seriously, nobody, even coming from another language, will be able to look at it<br>and say, "yes, that's an octal literal."</blockquote><div><br>I agree wholeheartedly with this. The argument that 'x' is the third character of 'hexadecimal', so 't' would have some kind of nice symmetry doesn't hold. One of the reasons that 'x' is such a nice label to remember is that its *pronunciation* (at least in English) matches that of the word 'hex'. The letter 't' has no real resemblance to the word 'octal', except that it happens to be a letter in the word.
<br><br>Then again, we all had to learn that '0x' meant 'hex' once, so maybe 't' isn't that big of a stretch. I do think that addressing the pronunciation would be a good idea, though. I wonder if the '0' prefix was meant to be pronounced "aught" in the beginning....
<br><br>:-)<br><br>- C<br><br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Georg<br><br>_______________________________________________
<br>Python-3000 mailing list<br><a href="mailto:Pythonemail@example.com">Pythonfirstname.lastname@example.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-3000">http://mail.python.org/mailman/listinfo/python-3000</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-3000/monpublic%40gmail.com">http://mail.python.org/mailman/options/python-3000/monpublic%40gmail.com</a><br></blockquote></div><br>