Closed
Description
Summary of the discussion in scala/scala#5350:
- Remove (not deprecate)
-Ysysdef
and-Ypredef
and-Yno-predef
and-Yno-imports
-Yimports:scala._,scala.Predef._
, requires fully qualified imports (like if they all started with_root_.
).-Yimports:_
for none. Colon-syntax usingMultiStringSetting
.- An explicit import of
Predef.x
in a source file removes the implicitscala.Predef._
import from that file. This is current behavior, and it will stay.- This special treatment also applies if
-Yimports
is present and includesscala.Predef._
-- this can still be debated (comment) - TODO: find a way to declare which root imports get predef-style treatment -- this is why the PR initially had the split between
-Ysysdef
and-Ypredef
- Imports listed in
-Yimports
cannot be un-imported in individual files (things likeimport Predef.{_ => _}
orimport scala.{util => _, _}
) -- maybe this can still be considered. For predefy-style imports it can be done by importing a single member that's not actually used.
- This special treatment also applies if
Aftermath:
It also sounds like an export
feature as outlined here is universally welcomed. There is (probably?) still a chance to get this in 2.13 if someone takes the lead. It should be coordinated with #442 (ideas to simplify imports).
Metadata
Metadata
Assignees
Labels
No labels