Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntactic bugs on ppx_rpc #650

Open
remyzorg opened this issue Sep 16, 2020 · 0 comments
Open

Syntactic bugs on ppx_rpc #650

remyzorg opened this issue Sep 16, 2020 · 0 comments

Comments

@remyzorg
Copy link

remyzorg commented Sep 16, 2020

  • On every rpcs syntaxes, optionnal parameters are working, but not with a default value :
let%cw_rpc f ?(eventids=[]) () = ...

At least we should be able to use

let%cw_rpc f ?(eventids : eventid list = []) () = ...
  • When using a tuple argument
let%cw_rpc f ((a, b) : int * int) = ...

Also, the Fatal error message is a bit violent. At least a Syntax error on ppx_rpc would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant