melange-re.github.io icon indicating copy to clipboard operation
melange-re.github.io copied to clipboard

Confusing references to `mel.obj` in Reason syntax

Open jchavarri opened this issue 1 year ago • 0 comments

In the docs, it's mentioned:

To create values, the [%mel.obj] extension is used, and the ## infix operator allows to read from the object properties:

image

And below:

We have already explored one approach for creating JavaScript object literals by using Js.t values and the mel.obj extension.

image

The above does not make sense in Reason syntax, where mel.obj is replaced by syntax sugar (records with keys as constant strings).

jchavarri avatar Oct 07 '24 13:10 jchavarri