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 sugar to combine processes #6

Open
np opened this issue Oct 8, 2015 · 1 comment
Open

Syntactic sugar to combine processes #6

np opened this issue Oct 8, 2015 · 1 comment

Comments

@np
Copy link
Owner

np commented Oct 8, 2015

Consider a process p of type: < A > for some session A, to use it we need a channel following session A, a typical pattern is to allocate such a channel and consume its dual:

example = proc()
   new (c : A, d : ~A)
   ( @p(c)
   | PROC_USING_d )

Initial suggestion with terse syntax:

example = proc()
   @p(d : ~A)
   PROC_USING_d

Others suggestions are welcome

@np np added the enhancement label Oct 8, 2015
@Danten
Copy link
Collaborator

Danten commented Oct 8, 2015

maybe using the keyword new again so it is obvious that some sort of binding happens?

example = proc()
   @p(new d : ~A) 
   PROC_USING_d

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

No branches or pull requests

2 participants