A design that subsumes the various syntactic forms of

  • if statements/expressions
  • switch on values
  • match on patterns and pattern guards
  • if-let constructs

and scales from simple one-liners to complex pattern matches.

    • socOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 days ago

      The author of that paper hung around in the lang design forum were I originally presented this.