1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Wish Parentheses line continuation (Python style)

Discussion in 'Bugs & wishlist' started by wonder, Jun 7, 2019.

  1. wonder

    wonder Expert Licensed User

    Hi!

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

    Cleaner:
    Code:
    # Python
    vector.set(
        offset.x + input_magnitude.x * 
    cos(a),
        offset.y + input_magnitude.y * 
    sin(a)
    )
    Ugly:
    Code:
    ' B4X
    vector.set( _
        offset.x + input_magnitude.x * 
    cos(a), _
        offset.y + input_magnitude.y * 
    sin(a) _
    )
     
    vecino and ShaneG30 like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice