ReScript vs Rescript for the lib module name

I’ve noticed that some libraries use Rescript for their module names eg RescriptCore, RescriptRelay, while others use ReScript eg ReScriptJs, ReScriptStruct.

I wonder which one is more correct :face_with_monocle:

  • ReScript
  • Rescript

0 voters

1 Like

While ReScript is more correct when used in everyday conversation, I think in module names it is better to treat it as one word (as in RescriptRelay). Just my opinion though.

2 Likes

I kinda agree. Similarly to the way that I prefer to treat abbreviations like Json as words in identifiers, I think I’d prefer treating Rescript as a single word.

2 Likes

Why is there this convention of adding the Rescript prefix in the namespace?

I understand prefix to publish the package to npm.

To avoid collision with the application module names :thinking:

1 Like

The official rescript-react goes with RescriptReact as well.

2 Likes