I don't understand why you can't just use parentheses for this. A key
advantage is that if you edit it to put the break at a different place, or
decide to add/eliminate a break, the expression is still valid. This is not
true in, say, Matlab, where a statement like
x = 5 + ... 3;
is invalid. You end up having to do a lot of editing when you only want to
add/subtract/move one character (a carriage return), and for me at least,
changing the position of the line break is something I do a lot when working
on code that has long computations. If you use parentheses, you have none of
these problems, nor will you create bugs.
Python, for example, recommends against their backslash line continuation
character in their style guide (https://www.python.org/dev/peps/pep-0008/),
even though it's available.
Best,
--Tim
On Saturday, May 30, 2015 12:21:16 PM Gabriel Mihalache wrote:
> Once you spend a few days tracking down a bug due to this, you never
> forget. The idea would be to find a way to save people from this experience.
>
> Some lines are naturally long because e.g. the equation is long or because
> you prefer long, informative variable names. You can always use variables
> for parts of the expression but then that just feels like working around
> poor language features/design.