Skip to content
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

Represent the arity of uncurried function definitions directly in the… #7197

Merged
merged 6 commits into from
Dec 10, 2024

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Dec 10, 2024

… AST.

This only changes the representation of the arity, and only affects the untyped ast.
Later on, one can try to remove Function$ entirely, as an uncurried function definition will be simply one where the arty is present.

@cristianoc cristianoc force-pushed the uncurried-fun-decl-arity branch from 02459bf to 8ff4713 Compare December 10, 2024 08:10
This goes towards making all arities explicit.
The arity is later overridden anyway, but being explicit can help cleaning up later on if `Function$` is removed entirely.
Cosmetic change that will be needed later to remove `Function$`.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Syntax Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: dfb4b2e Previous: e1b7fb7 Ratio
Print RedBlackTreeNoComments.res - time/run 2.3617198066666667 ms 2.10057036 ms 1.12

This comment was automatically generated by workflow using github-action-benchmark.

@cristianoc cristianoc requested review from cknitt and zth December 10, 2024 09:20
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.

Great! Looking forward to when Function$ will be gone. 🙂

@cristianoc cristianoc enabled auto-merge (squash) December 10, 2024 15:36
@cristianoc cristianoc merged commit ba78715 into master Dec 10, 2024
19 checks passed
@cristianoc cristianoc deleted the uncurried-fun-decl-arity branch December 10, 2024 15:43
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.

2 participants