Skip to content

Clean up lazy from ASTs and back-end. #7474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged

Clean up lazy from ASTs and back-end. #7474

merged 1 commit into from
May 16, 2025

Conversation

cristianoc
Copy link
Collaborator

Now that lazy is handled user-side, there's a bunch of unused code.

The type lazy_t is still predefined, and module Primitive_lazy.res still exists. Perhaps lazy_t can be moved user side too, and Primitive_lazy just moved into Stdlib_lazy, which seems just a wrapper for it at the moment.

Now that lazy is handled user-side, there's a bunch of unused code.

The type `lazy_t` is still predefined, and module `Primitive_lazy.res` still exists. Perhaps `lazy_t` can be moved user side too, and `Primitive_lazy` just moved into `Stdlib_lazy`, which seems just a wrapper for it at the moment.
Copy link

pkg-pr-new bot commented May 16, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7474

@rescript/darwin-arm64

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/linux-x64

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

@rescript/win32-x64

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

commit: 797df52

Copy link
Member

@cknitt cknitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup! 🎉

Copy link
Collaborator

@nojaf nojaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@cristianoc
Copy link
Collaborator Author

Should we also remove built in lazy_t, and move Primitive_lazy into the stdlib lazy module.
Meaning: have we ever advertised the existence of lazy_t as builtin, or the existence of Primituve_lazy?

@cknitt
Copy link
Member

cknitt commented May 16, 2025

Should we also remove built in lazy_t, and move Primitive_lazy into the stdlib lazy module.

Yes, I can do the stdlib stuff in a separate PR if you like.

Meaning: have we ever advertised the existence of lazy_t as builtin, or the existence of Primituve_lazy?

Not that I know of.

@cristianoc cristianoc merged commit dc88212 into master May 16, 2025
21 checks passed
@cristianoc cristianoc deleted the clean_up_lazy branch May 16, 2025 14:35
@cknitt cknitt mentioned this pull request May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants