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

vetExternalProtocol should be a macro #2

Open
rkuhn opened this issue May 14, 2017 · 2 comments
Open

vetExternalProtocol should be a macro #2

rkuhn opened this issue May 14, 2017 · 2 comments

Comments

@rkuhn
Copy link
Owner

rkuhn commented May 14, 2017

  • to avoid calling the actual method that creates the Operation
  • to generate readable error output in case of a mismatch
@simerplaha
Copy link

Hi Roland

Can we use scala.meta for this ?

How would the macro be used, do we use annotation ?

For example -

@VetExternalProtocol(ProcessBased.getMoney)
object GetMoneyProtocol extends E.Protocol {
    ...
}

Cheers :)

@rkuhn
Copy link
Owner Author

rkuhn commented May 15, 2017

I imagine the protocol definition to come from an external source, so the macro should not act on that one. Let’s start by just turning the vetExternalProtocol method into a def-macro. Then we can see whether we make it an annotation to be applied to the process definition (i.e. the getMoney method).

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

2 participants