OCaml 5 Effects syntax

The effect system is an experimental feature of OCaml 5.0 that is not part of the surface language and it is only accessible through the low-level primitive exposed in the Effect module. There is a preview of the 5.0 manual tutorial for effect available here OCaml - Language extensions that covers those primitives in more detail. The main idea here is that the design of the effect system will be refined in the subsequent release of the language, in order to have the time to explore the design space for the typed effect system.

5 Likes