Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Compiler should enforce rules for prioritised processes #13

Closed
hyperthunk opened this issue Feb 20, 2017 · 0 comments
Closed

Compiler should enforce rules for prioritised processes #13

hyperthunk opened this issue Feb 20, 2017 · 0 comments
Assignees

Comments

@hyperthunk
Copy link
Member

Currently it's possible to pass a process definition containing handleExternal or handleControlChannel to pserve, but this will fail at runtime with something like ExitOther "IllegalControlChannel". It would be better if the compiler enforced this distinction, so instead of embedding ProcessDefinition inside of PrioritisedProcessDefinition, I think we should copy the fields across (and rename them) so we can avoid this. I might be necessary to move external handlers out of the apiHandlers group to achieve this, but I think that's a price worth paying for the additional type safety.

@hyperthunk hyperthunk self-assigned this Feb 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant