|
|
|
|
|
by throwitaway1123
669 days ago
|
|
This looks pretty cool. One issue I have from just a cursory glance is that the IO capability includes things like `print` and `echo` [1]. If the context system can't differentiate between `console.log` and `fetch`, then it's a little less useful for me. If there was a way for users to define their own coeffects then you could sidestep this issue, but I saw this quote in one of the design documents: "Runtime will have a native knowledge of each co-effect. We will not allow co-effects to be defined in user-land code [...] An important aspect to note here is that certain co-effects that need deep support from runtime such as io and pure will need to be implemented in the runtime" [2]. [1] https://docs.hhvm.com/hack/contexts-and-capabilities/availab... [2] https://github.com/facebook/hhvm/blob/master/hphp/hack/doc/H... |
|