unused variable this
You can create objects in ReasonML. For example:
let document = {
pub title = "My Treatise";
pub contents = "<a lot of words>"
};
If you compile this, you will most likely get warning number 27 with message unused variable this.
.
You can solve this by adding as _;
as follows:
let document = {
as _;
pub title = "My Treatise";
pub contents = "<a lot of words>"
};
Why is this the case?