SATySFi icon indicating copy to clipboard operation
SATySFi copied to clipboard

Enhancement: Optional arguments of let-{rec,inline,block}

Open nekketsuuu opened this issue 5 years ago • 0 comments

I noticed that optional arguments are sometimes not supported (syntax error).

Example:

% These are good.
let f ?:x y = ()
let-inline ctx \f ?:x y = read-inline ctx {}
let-block ctx +f ?:x y = read-block ctx '<>

% These are not.
let-rec f ?:x y = ()
let-inline \f ?:x y = {}
let-block +f ?:x y = '<>

So I asked this on Twitter in Japanese, and gfn-san answered that these three should be implemented. Therefore I post this issue for a record.

Environment

  • Ubuntu 18.04
  • OCaml 4.06.1
  • SATySFi >=0.03 (current head 7ba1d05d258eac087e0439f3b731c96ca193c8a2)

nekketsuuu avatar Oct 23 '18 12:10 nekketsuuu