Skip to content

scala 3 doesnt use _ in imports #1943

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

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions _overviews/scala3-book/packaging-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,9 @@ They’re explained more in the subsections that follow.
Import statements are also used to import `given` instances into scope.
Those are discussed at the end of this chapter.

Two notes before moving on:

- Import clauses are not required for accessing members of the same package.
- When the `_` character is used in Scala import statements, it’s similar to the `*` character in Java.
One reason for this difference is that in Scala, the `*` character can be used for method names.
A note before moving on:

> Import clauses are not required for accessing members of the same package.

### Importing one or more members

Expand Down