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

exercises(darts): example: remove unnecessary Self #357

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

ee7
Copy link
Member

@ee7 ee7 commented Oct 25, 2023

Use the preferred style.

The only other @This() in this repo is in the example solution for the linked-list exercise, where it's more appropriate:

/// A doubly linked list
pub fn LinkedList(comptime T: type) type {
return struct {
const Self = @This();

Refs: #313

@ee7 ee7 requested a review from booniepepper October 25, 2023 15:24
Use the preferred style [1].

The only other `@This()` in this repo is in the example solution for the
`linked-list` exercise, where it's appropriate.

[1] https://zig.news/kristoff/dont-self-simple-structs-fj8
@ee7 ee7 force-pushed the darts-example-remove-Self branch from fc66bc5 to 7e0f751 Compare November 12, 2023 17:31
@ee7 ee7 requested a review from ErikSchierboom November 12, 2023 17:32
@ee7 ee7 merged commit 3403190 into exercism:main Nov 14, 2023
7 checks passed
@ee7 ee7 deleted the darts-example-remove-Self branch November 14, 2023 18:38
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