Hacker News new | past | comments | ask | show | jobs | submit login

Speak for yourself

a = "a long message with 70 chars..."

vs

a = ("a long message..."

     " with 70 chars...")



You should not be using long messages in code, for one thing you can't localize them across multiple languages. You can do:

  A = \
  "A really long string"
But, the odds are really good you are making a mistake.


Readability is still bad in your example, and not all projects require localization (not to mention usage of \ is not encouraged)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: