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

Add try..finally syntax

Open cknitt opened this issue 3 months ago • 2 comments

Adds support for try..finally and try..catch..finally syntax to ReScript. No breaking changes / full backwards compatibility.

Resolves #6974.

cknitt avatar Sep 18 '25 15:09 cknitt

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7903
@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7903
@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7903
@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7903
@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7903
@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@7903
@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7903

commit: 4eb58f6

pkg-pr-new[bot] avatar Sep 18 '25 17:09 pkg-pr-new[bot]

Maybe add a try await example to the tests.

fhammerschmidt avatar Sep 18 '25 19:09 fhammerschmidt