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

List methods #1086

Merged
merged 38 commits into from
Dec 19, 2024
Merged

List methods #1086

merged 38 commits into from
Dec 19, 2024

Conversation

JonasWanke
Copy link
Member

@JonasWanke JonasWanke commented Dec 5, 2024

Depends on #1085!

Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

@JonasWanke JonasWanke added the T: Feature Type: New Features label Dec 5, 2024
@JonasWanke JonasWanke self-assigned this Dec 5, 2024
@jwbot jwbot added P: Compiler v4 Package: Compiler v4 P: Packages v5 Package: Packages v5 labels Dec 5, 2024
@jwbot jwbot enabled auto-merge December 5, 2024 20:15
@JonasWanke JonasWanke mentioned this pull request Dec 12, 2024
2 tasks
packages_v5/example.candy Outdated Show resolved Hide resolved
Comment on lines +539 to +542
struct Pair[T0, T1] {
first: T0,
second: T1,
}
Copy link
Member

Choose a reason for hiding this comment

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

In Martinaise, I use A and B as types and a and b as field names. Opinions?

(Although, in my experience, that pattern leads to compiler errors when you try to introduce a type named C as a compiler stage.)

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I'll leave it as a generic T for now, but use different type parameter names if they correspond to something specific (like how we use a lifetime 'h for referencing the HIR)

@JonasWanke JonasWanke disabled auto-merge December 19, 2024 10:57
@JonasWanke JonasWanke merged commit ac6fb09 into main Dec 19, 2024
9 checks passed
@JonasWanke JonasWanke deleted the list-methods branch December 19, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler v4 Package: Compiler v4 P: Packages v5 Package: Packages v5 T: Feature Type: New Features
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants