Open proppy opened 1 year ago
Channel operations are not currently supported in functions. This error message really doesn't convey that, it should be better.
It's a separate question if functions should be able to do channel operations. My understanding is that there are simulator/JIT reasons why it's nice that functions can't do channel operations. However, it is totally natural to want to factor a proc's functionality out into functions and would help solve a lot of proc's clunkiness.
it seems that
send
andrecv
operation fails when being called from helperfn
s invoked from aproc
(even if being passed the appropriatetoken
andchan
):would produce the following error: