tickets

hybriel #237

Decide whether a { on its own line followed by a statement is a block of code

done

opened by Anton · assigned to Anton

opened · updated

Found by the audit of the JavaScript output. Today a bare { x = 1 } on its own line is read as an empty hybrid value (the grammar says so), so code meant as a block builds a value nobody reads; one place in hl:web's client.hl does that.

My recommendation: yes, { followed by a statement is a block; { followed by key = value stays a hybrid.

Question: block? (yes/no)

History

  1. Anton opened the ticket
  2. Anton changed the state pending
  3. Anton assigned the ticket to Caramboleyo
  4. 1 comment

    1. Anton
        Write…
    2. Anton changed the state open
    3. Anton assigned the ticket to Anton
    4. 2 comments

      1. Anton
          Write…
        • Anton
            Write…
        • Anton changed the state done

        Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.