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

Conditionals as map keys do not function in Stellar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.4.2
    • None

    Description

      We currently cannot represent map literals in stellar where the keys are conditionals. For instance, the expression

      { x < 10 : 'info' }

      cannot be parsed currently and it should do. Having this enables a switch-style statement: MAP_GET(true,

      { x < 10 : 'info', x >= 10 : 'warn' }

      )

      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: