using
keyword instead of //> using
?
#21703
joan38
started this conversation in
General Discussion
Replies: 1 comment
-
We've had a lot of discussions about it and the comment was good enough to work across all Scala versions and not break all the tooling at the same time. We could at some point do this only for Scala 3, though it would make it incompatible with Scala 2. I think what is missing is someone to push first the discussion and then the SiP through, since the current solution is good enough and hasn't caused a lot of issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is following a discussion on Discord about
//> using
inscala
Hi,
Sounds like there is no plan of having the top level
using
keyword excluded by the language spec.Meaning
//>
is necessary in front ofusing
with no plan of changing this.I for any Scala dev that knows the context and history on why the
//>
, it make sense. But for any new comer to Scala it's kind of weird to have to do//>
.Most people will not understand the difference between
scalac
andscala
.If the compiler (
scalac
) needs to ignore the top level keywordusing
, we should do it instead of relying on some commented (but not really) code.The
//>
feels like a temporary hack that we should be looking to resolve soon.Thanks
Beta Was this translation helpful? Give feedback.
All reactions