• muntedcrocodile@lemm.ee
    link
    fedilink
    English
    arrow-up
    6
    ·
    7 days ago

    So the matlab thing where all lines not terminated by semi colon are printed except use Greek question marks instead of semi colons.

    • AdamEatsAss@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      I like this but to make the code more readable the Greek question mark should also be placed upsidedown at the start of every line that needs to not be printed.

      • muntedcrocodile@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 days ago

        Should it raise an error of treat it as a comment for lines with neither? Im leaning towards treat it as a comment will make debugging harder.

        • AdamEatsAss@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          6 days ago

          I agree. If there is no Greek question mark at all it should be code that is printed to console. If there is an upside down at the start and upside right at the end it is just normal code. If upside right at the end only, it is a comment. Only upside down at the start it will be treated as debug specific code and will not be run in production compilations.

          • muntedcrocodile@lemm.ee
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 days ago

            Beautiful its perfect. We should also nudge the develop in the right direction with equality checking im thinking we say √10 = √g = π = 3 = e but we will use === for this and if u want o check exact values u need to use ==== and == will be to assign variables so = can be used as an operator for dedining an equation that happens to be an object.