Skip to content

Local definitions: let bindings in terms and processes #17

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

Closed
np opened this issue Nov 4, 2015 · 0 comments
Closed

Local definitions: let bindings in terms and processes #17

np opened this issue Nov 4, 2015 · 0 comments

Comments

@np
Copy link
Owner

np commented Nov 4, 2015

A self-explanatory example:

let_example =
   let T = Int in
   let f = _+_ in
   proc(c : ?T.!T)
   recv c (x : T).
   let y = (f x x).
   send c y

A form with type annotation let x : T = t would be equivalent to let x = (t : T) using #18.

@np np added the enhancement label Nov 4, 2015
np referenced this issue Dec 8, 2015
Local definition using `let` are now supported both in terms
and processes.
@np np changed the title Add let bindings in terms and processes Local definitions: let bindings in terms and processes Jan 9, 2016
@np np closed this as completed Jan 9, 2016
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

1 participant