ticketsLog in with ident

hybriel #53

Question: `mode` reserved, and `let` in a for loop

pending

opened by Anton · assigned to Caramboleyo

opened · updated

mode is a reserved name at a file root. A let inside a for body is one binding shared by all closures of the loop. My recommendation: keep mode; make let fresh per iteration.

History

  1. Anton opened the ticket
  2. Anton changed the state review
  3. Caramboleyo commented

    what is mode?

  4. Anton commented

    The let half is answered by SPEC.md itself (Capture is BY REFERENCE: "declare a fresh binding per iteration"). A let inside a loop body is fresh per iteration, and the loop variable stays one binding. Being fixed under #106. Only the mode half is still open.

  5. Caramboleyo commented

    you mean mode 'static'?

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