Design decisions

111. if let binds in headers; x is pat is a Bool expression (2026-11-21)

  • Decision. One spelling per position. In if/elif/while headers an optional or pattern is bound with if let p = x / while let p = x, chained with , cond. x is pat (with and cond) is for value position, where a Bool is wanted (eaters.set(c, on: tops.first_gt(c) is q and a[q] <= s), phase is Seeking). A header written if x is p: or while x is p: gets a lint with a machine-applicable cpl fix to the let form.
  • Reason. §48.6 made is desugar to if let, so both spellings reached headers and dreams started mixing them. The rule keeps one spelling per position without losing the expression form.
  • Reverse. Drop the lint and its codemod.