Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-980

Short circuit operations for Stellar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.4.0
    • None

    Description

      Stellar does not currently contain short circuit operations. In most languages, this is an important optimization, but for Stellar on Metron, this is a requirement due to the fact that some variables may be null legitimately and we cannot create multi-line conditionals or temporary variables at the moment.

      The short circuit operations supported:

      • short circuited `or` (e.g. true or FUNC(...) would never execute FUNC)
      • short circuited `and` (e.g. false and FUNC(...) would never execute FUNC)
      • short circuited if/then/else (e.g. if true then FUNC(...) else FUNC2(...) will never call FUNC2)

      Attachments

        Issue Links

          Activity

            People

              cestella Casey Stella
              cestella Casey Stella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: