Get the latest tech news

X Design Notes: Unifying OCaml Modules and Values


Programming, math, and other things gratuitously nerdy. Opinions are my own.

With these rules, we can safely allow extending a module with the contents of some arbitrary other value, which should support the most common reason why people might want this syntax in OCaml. By contrast, the version of let mod syntax for X shown in the previous section requires an explicit type annotation at the point where the module is bound. With modules out of the way, there are several other OCaml features left to integrate into X, notably nominal types(including records and variants) and GADTs, subjects I hope to address in subsequent blog posts about the planned design of X.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of values

values

Photo of design notes

design notes

Related news:

News photo

Saudi’s Humain Launches Arabic Chatbot With ‘Islamic’ Values

News photo

Astronomer CEO Andy Byron resigns after Coldplay ‘kiss cam’ scandal, company confirms in statement: ‘Astronomer is committed to the values and culture that have guided us since our founding,’ the company said in a statement Friday

News photo

Apple Updates Trade-In Values for iPhones, Macs, and More