rescript-tutorial icon indicating copy to clipboard operation
rescript-tutorial copied to clipboard

Results 4 rescript-tutorial issues
Sort by recently updated
recently updated
newest added

You encounter this error (in chapter 2) before the unit type is introduced. Introduce the underscore binding to which you can assign values, you do not care about. This will...

```js let x = (220 - 200) * 5 / 100 + 25 // x = 26 let y = (220 - 200) * (5 / 100) + 25 //...

This is an error you run into when working through the tutorial. The `unit` type is not introduced in the beginning with other primitive types. So when this error happens...

* You have to always provide the else branch * Unless you are returning `unit` type * Rationale for why this restriction is necessary for writing robust production code *...

documentation