You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cap is exact same thing as in Bus and i find it very useful. for example if are passing AVar to someone they can do many staff with it but if you instead pass AVarW you know they can only write to it and not read.
if you like I can make similar changes (except Monad{Aff,Eff} i guess) and then in ps-bus we can reuse this Cap.
The text was updated successfully, but these errors were encountered:
We can add this as new module or just update current Avar type. if we want backwards compatibility then we can rename Avar to Avar' and add type Avar = AvarRW.
One interesting observation I came up to while Avar with RW staff is that for example AVarW Void can be used as canceler of some computation as only operation one can perform on it is to kill with Error.
I have a module which looks like this:
The
Cap
is exact same thing as inBus
and i find it very useful. for example if are passing AVar to someone they can do many staff with it but if you instead passAVarW
you know they can only write to it and not read.if you like I can make similar changes (except Monad{Aff,Eff} i guess) and then in ps-bus we can reuse this
Cap
.The text was updated successfully, but these errors were encountered: