You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Newcomer Examples page invites newcomers to suggest an edit, but I can't suggest a specific edit because it involves something that I think would be a great example, but I don't yet know enough to explain it.
A lot of examples of Reason code have things like the following:
Console.log("Running Test Program:");
let () = print_endline(Lib.Util.hello());
That the complete source code to the main script in esy's hello-reason example project.
My understanding is that this idiom is used to ensure that the result is unit. But it's highly non-obvious to newcomers such as myself. And I especially don't know enough to understand why that would be useful in a module. It seems like describing this idiom in some detail (not just with respect to modules) would be a worthy addition to the Newcomer Examples page. But I can't do it yet; all I can do is post this issue.
The text was updated successfully, but these errors were encountered:
The Newcomer Examples page invites newcomers to suggest an edit, but I can't suggest a specific edit because it involves something that I think would be a great example, but I don't yet know enough to explain it.
A lot of examples of Reason code have things like the following:
That the complete source code to the main script in esy's hello-reason example project.
My understanding is that this idiom is used to ensure that the result is unit. But it's highly non-obvious to newcomers such as myself. And I especially don't know enough to understand why that would be useful in a module. It seems like describing this idiom in some detail (not just with respect to modules) would be a worthy addition to the Newcomer Examples page. But I can't do it yet; all I can do is post this issue.
The text was updated successfully, but these errors were encountered: