Wish Parentheses line continuation (Python style)

wonder

Expert
Licensed User
Hi!

In Python whenever you open parentheses, there is no need for the continuation character.

Cleaner:
B4X:
# Python
vector.set(
    offset.x + input_magnitude.x * cos(a),
    offset.y + input_magnitude.y * sin(a)
)
Ugly:
B4X:
' B4X
vector.set( _
    offset.x + input_magnitude.x * cos(a), _
    offset.y + input_magnitude.y * sin(a) _
)
 
Top