Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Private by default

$
0
0

There is a syntax for private let bindings, but it allows multiple values like a module would.

That way you don’t need to put private before every value.

%%private(
  let x = 42
  let y = 1
)

Viewing all articles
Browse latest Browse all 2592

Trending Articles