Skip to content

Conversation

aspeddro
Copy link
Collaborator

No description provided.

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.

Thanks a lot for your work @aspeddro!

Could you fix that unction -> function thing and then we can merge?

My other two remarks seem to be regressions in the compiler output. /cc @cristianoc

logMsg(user, datestr, "example message".toUpperCase());
((function (__x) {
logMsg(user, datestr, __x);
})("example message".toUpperCase()));
Copy link
Member

Choose a reason for hiding this comment

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

This change in the JS output seems weird.

}

function dieRollMessage(name, value) {
return "Hi " + name + ", you rolled a " + value.toString();
}

var message = dieRollMessage("Jeremy", Js_math.random_int(1, 6));
var message = dieRollMessage("Jeremy", dieRoll(6));
Copy link
Member

Choose a reason for hiding this comment

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

Here it seems we lost some inlining in v11 / uncurried.

Co-authored-by: Christoph Knittel <christoph@knittel.cc>
@fhammerschmidt fhammerschmidt merged commit 348d0b2 into rescript-lang:master Jan 12, 2024
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