mlscript icon indicating copy to clipboard operation
mlscript copied to clipboard

Quasiquote syntax support

Open NeilKleistGao opened this issue 1 year ago • 2 comments

Support more quasiquote syntax:

  • [ ] Assign
  • [ ] While
  • [ ] NuNew
  • [ ] Tuple
  • [ ] Pattern matching

Also see: #182

NeilKleistGao avatar Feb 16 '24 12:02 NeilKleistGao

  • [ ] A pattern like `f(a) is always wrong, as a quoted f can never be applied. We should issue a warning that the user probably intended to write `f`(a).

LPTK avatar Feb 16 '24 14:02 LPTK

  • [ ] Improve quoted blocks:
    `let x = a `in
      `log`(x)
      x
    
    [@LPTK:] this should generate a warning as it's obviously not doing something the user expected. Similarly to `foo(`42) (should be `foo`(`42)).

NeilKleistGao avatar Feb 20 '24 02:02 NeilKleistGao