On Thu, 29 Aug 2019 at 15:54, Steven D'Aprano <st...@pearwood.info> wrote:
> Let me suggest some design principles that should hold for languages > with more-or-less "conventional" syntax. Languages like APL or Forth > excluded. This will degenerate into nitpicking very fast, so let me just say that I understand the general idea that you're trying to express here. I don't entirely agree with it, though, and I think there are some fairly common violations of your suggestion below that make your arguments less persuasive than maybe you'd like. > - anything using ' or " quotation marks as delimiters (with or without > affixes) ought to return a string, and nothing but a string; In C, Java and C++, 'x' is an integer (char). In SQL (some dialects, at least) TIMESTAMP'2019-08-22 11:32:12' is a TIMESTAMP value. In Python, b'123' is a bytes object (which maybe you're willing to classify as "a string", but the line blurs quite fast). Paul _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/XPL2VXD55GL7VCM7TO36MI4ZAECEJFUS/ Code of Conduct: http://python.org/psf/codeofconduct/