Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.39 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.39 KB

Partial rewrite of the TypeScript project JoA Dice in ReScript

This is the 2nd edition of my language exploration project

to be fair in term of language comparison, I have to note that the internal model used in this project is simpler than the previous one:

  • from roll: map<face, count> in typescript
  • to roll: list<face> in rescript

firsts impressions:

  • automatic prettier in the vscode plugin is fine, but sometimes you'd prefer to format yourself to make the code more explicit (for instance keep function signature separated from the implementation)
  • Belt module miss some important functions (for instance no Belt.List.toArray, you have to get it in another (undocumented) module Array.of_list)
  • more generally, juggling with Belt and Js module is a pain
  • documentation is improvable, I got most of the info I needed on the language itself (I'm a noob in FP) from an other source (Exploring ReasonML)
  • otherwise, the language is really promising :)

build with npm run build, build+watch with npm run start