ocaml icon indicating copy to clipboard operation
ocaml copied to clipboard

Add effect to the keywords in the manual

Open lupjo opened this issue 3 months ago • 3 comments

The published manual doesn't mention the effect keyword It could also be relevant to mention the fact that the set of keywords now also depends on the -keyword option

lupjo avatar Nov 07 '25 20:11 lupjo

Sounds reasonable. Would you like to propose a PR? Thanks!

nojb avatar Nov 12 '25 14:11 nojb

We could possibly look at either mechanising the relevant section or having a check on it (a la the Standard Library modules checks in the manual), given that we also have keywords based on the syntax version.

cf. for interest, an un-merged splitting of the keywords information out of the lexer https://github.com/dra27/ocaml/pull/239/commits/dd07f7b9b4cf4165ca45d50d8e0cf800974f3d84#diff-704f20cc226370aa24d24073df0a9d191e405b5025fe55e921101c9c581a3845

dra27 avatar Nov 12 '25 14:11 dra27

Are we sure that the manual doesn't mention the effect keyword? It was added in #13295

yawaramin avatar Nov 30 '25 04:11 yawaramin