On Wed, Jun 17, 2020 at 6:09 AM Soni L. <fakedme...@gmail.com> wrote:

> This also gives us two ways of doing indented strings (in Lua):
>
> local ugly = "foo\n    \z
>                   bar\n    \z
>                   baz"
> local nicer = "foo\n\z
>                \x20   bar\n\z
>                \x20   baz"
>

I'm having a really hard time seeing why that is either more readable, or
easier to type than:

nicest = ("foo"
          "   bar"
          "   baz"
          )
(my prefered way these days)

or

nicest = \
"""foo
   bar"
   baz"""

-CHB



-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
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/EKJ3TG7JQCZSNWFKN2JMSQGFZ4ZU5UUR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to