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

Move Option stdlib optimizations into typed pipeline

Open cristianoc opened this issue 3 months ago • 2 comments

Summary

  • detect real invocations during type checking and annotate the typed tree
  • lower those annotations directly to the existing lambda primitives instead of relying on the Parsetree PPX
  • drop the Parsetree transformer, update docs/tests, and adjust runtime examples to match the new API surface

Testing

  • make test (docstring generator still fails on pre-existing Stdlib_DataView snippets)

cristianoc avatar Sep 23 '25 14:09 cristianoc

As we are doing the transformation on the typed level now, shouldn't we add some type checking tests, too?

cknitt avatar Sep 23 '25 14:09 cknitt

Rebased after the Docstring test fixes

cknitt avatar Sep 24 '25 16:09 cknitt