Skip to content

ReScript v11+: 1.0.0 #189

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 9 commits into from
Feb 14, 2024
Merged

ReScript v11+: 1.0.0 #189

merged 9 commits into from
Feb 14, 2024

Conversation

zth
Copy link
Collaborator

@zth zth commented Feb 7, 2024

This adapts Core to better fit ReScript v11+.

Going forward, main will hold Core versions 1.0.0+, and be fully adapted to v11.
https://github.com/rescript-association/rescript-core/tree/0.x will hold 0.x versions, and they will be compatible with <11 as well.

@zth zth requested a review from cknitt February 7, 2024 08:58
@zth
Copy link
Collaborator Author

zth commented Feb 7, 2024

cc @glennsl

@zth zth mentioned this pull request Feb 7, 2024

function classify(value) {
var match = Object.prototype.toString.call(value);
switch (match) {
case "[object Array]" :
return {
TAG: /* Array */4,
TAG: "Array",
Copy link
Contributor

Choose a reason for hiding this comment

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

this js file was just very stale right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, this was just the first time Core had v11+ as dep.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh right v10 is older than I'd remember.

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.

🎉

Comment on lines -1042 to +1077
var p$1 = Curry.__2(p);
var p$1 = function (a, b) {
return p(a, b);
};
Copy link
Contributor

Choose a reason for hiding this comment

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

What's with the unnecessary wrapper functions here?

external make: ((@uncurry (. 'a) => unit, (. 'e) => unit) => unit) => t<'a> = "Promise"
external make: ((@uncurry 'a => unit, 'e => unit) => unit) => t<'a> = "Promise"
Copy link
Contributor

Choose a reason for hiding this comment

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

@uncurry annotations can be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, should probably preserve those uncurried dots instead, and let the annotation stay. Unless we decide to go full uncurried mode already.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@glennsl I'll go ahead and just remove the @uncurry annotations, and we can let 1.0.0+ of Core be focused on uncurried mode (<1.0.0 can be used with curried mode in v11+ still). It'll be uncurried once it's in the compiler anyway, so seems like the best path forward.

@zth zth merged commit 4872b09 into main Feb 14, 2024
@zth zth deleted the 1.x branch February 14, 2024 19:13
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.

4 participants