# Best practice for avoiding line break bugs in long expressions

**URL:** <https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475>\
**Category:** General Usage\
**Created:** [December 3, 2017, 12:53pm UTC](https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475 "2017-12-03T12:53:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/garrison/32/209519_2.png) [@garrison](https://discourse.julialang.org/u/garrison)\
**Post date:** [December 4, 2017, 1:24am UTC](https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475/8 "2017-12-04T01:24:30Z")

</div>

I always wrap multiline expressions in parentheses to avoid errors like the one you mentioned. I developed this habit after reading [PEP8](https://www.python.org/dev/peps/pep-0008/), which says

> The preferred way of wrapping long lines is by using Python’s implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping expressions in parentheses. These should be used in preference to using a backslash for line continuation.

This is also a common recommendation in Javascript style guides, as Javascript has “automatic semicolon insertion” which some people find unintuitive.

---

_[View the full topic](https://discourse.julialang.org/t/best-practice-for-avoiding-line-break-bugs-in-long-expressions/7475)._
