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

fix-721 #722

Merged
merged 1 commit into from
Nov 6, 2024
Merged

fix-721 #722

merged 1 commit into from
Nov 6, 2024

Conversation

giacomocavalieri
Copy link
Member

This PR fixes #721, I've also moved the _loop functions below the original definition using it, so they're closer and not separated by the big doc comment chunk

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Wow that was fast!!

@lpil lpil merged commit 959aa17 into gleam-lang:main Nov 6, 2024
7 checks passed
@giacomocavalieri giacomocavalieri deleted the fix-721 branch November 6, 2024 18:04
@@ -233,10 +233,10 @@ fn reverse_and_concat(remaining: List(a), accumulator: List(a)) -> List(a) {
}
}

fn do_keys_acc(list: List(#(k, v)), acc: List(k)) -> List(k) {
fn do_keys_loop(list: List(#(k, v)), acc: List(k)) -> List(k) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the idea was to drop the do_ when there is a _loop?
Aka an oversight? @giacomocavalieri

@inoas
Copy link
Contributor

inoas commented Nov 7, 2024

I've also moved the _loop functions below the original definition using it

I think stdlib has a lot of required private functions above their public functions... Is this now a mixed? Would below make sense, generally? @giacomocavalieri

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.

Change do_ prefix for _loop suffix where appropriate
3 participants