DocsPlaygroundBlogCommunityPackages
  • Playground
  • Blog
  • Community
  • Packages
  • X
  • Bluesky
  • GitHub
  • Forum
Language ManualAPISyntax LookupReact

Syntax Lookup

Enter some language construct you want to know more about.
This is the private let binding extension point.

%%private is used to make let bindings private.

ReScriptJS Output
module Calc = {
  %%private(let mult = (x, y) => x * y)

  let double = x => mult(x, 2)
  let triple = x => mult(x, 3)
}

References

  • Private Let Bindings

  • Extension Point Attributes

© 2025 The ReScript Project

About
  • Community
  • ReScript Association
Find us on