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

Use glob import in default test template #1819

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Use glob import in default test template #1819

merged 1 commit into from
Dec 12, 2023

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Dec 9, 2023

Glob imports are a better default for the test template. Some exercises may require the student to implement a method. If the test file doesn't have a glob import, the students will be forced to implement an inherent method on a struct. On the other hand, if a glob import is used, the students may choose to implement it as a method on a trait.
Traits are a powerful feature of Rust, so we want to enable students to experiment with them whenever possible.

Glob imports are a better default for the test template.
Some exercises may require the student to implement a method.
If the test file doesn't have a glob import, the students will
be forced to implement an inherent method on a struct.
On the other hand, if a glob import is used, the students may choose
to implement it as a method on a trait.
Traits are a powerful feature of Rust, so we want to enable students
to experiment with them whenever possible.
@senekor senekor merged commit c7351dd into main Dec 12, 2023
11 checks passed
@senekor senekor deleted the default-glob-import branch December 12, 2023 08:47
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