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

Get rid of references to dotc #2694

Open
prolativ opened this issue Feb 9, 2023 · 3 comments
Open

Get rid of references to dotc #2694

prolativ opened this issue Feb 9, 2023 · 3 comments

Comments

@prolativ
Copy link
Contributor

prolativ commented Feb 9, 2023

Currently the command to compile scala 3 code is scalac. The name dotc is not used anymore and should disappear from the documentation unless when it refers to the historical dotc command.

@bishabosha
Copy link
Member

I searched through the docs and the only mentions of dotc are in the compiler contribution guide. The reason for that choice being scala 3 compiler is in the package called dotc, like the scala 2 compiler is in the package called nsc. is that not the name of the compiler?

@prolativ
Copy link
Contributor Author

OK, right - most of the compiler core code resides in dotty.tools.dotc package. However I had an impression that it's just because it would be too much work to migrate the code to use different package names and nobody cared for this enough. Except for this particular context the name dotc seemed to me to be currently out of use.
And while I was reading through the contribution guide and came across sentences like

As an example, dotc takes text input, verifies that it is a valid Scala program and then produces as output the same program, but written in Java bytecode ...

I thought that if I were a new contributor to the language I would then expect dotc to be actually a command line program I could run like dotc Foo1.scala to compile my code, which actually used to work in the past but is not valid now.

@bishabosha
Copy link
Member

I see now with that snippet in isolation that your comment makes sense. Ok we should identify when the context makes sense to still use dotc (also there's the issue of distinguishing from scala 2 compiler)

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

No branches or pull requests

2 participants