Simple question about line continuation in coding

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39658 quote
    AVT
    Participant
    Senior

    I have a very simple question with regard to coding style: As we do not have a “line end signal” like this

    if condition ; <- line end signal

    then do action1 ; action2 ; action3 ;

    done

    how can we achieve better readability of the code if a line is very long (I usually try to limit lines to 80 chars, good old times rule). Example:

    Return MyVeryLongVariableName1 as "Long Variable 1", MyVerLongVariableName2 as "Long Variable 2", MyVeryLongVariableName3 as "Long Variable 3"

    Yes, I kow the ProBuilder editor (as any editor) can do automatic word wrapping but this makes reading not necessarily easier. Thanks.

    #39685 quote
    Nicolas
    Keymaster
    Master

    There is no possibility than let ProBuilder do the words wrapping all by itself. It is not possible to break code lines ourselves, otherwise it would result of syntax error.

    AVT thanked this post
    #39695 quote
    AVT
    Participant
    Senior

    Ok, I can live with that 😉

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Simple question about line continuation in coding


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
AVT @avt Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by AVT
8 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/03/2017
Status: Active
Attachments: No files
Logo Logo
Loading...