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
Accept -Vprint:all
, -Vprint:~tailcalls
#10173
Conversation
Sounds good |
I'll work out the kinks. I think there was a kink. |
6bc1a88
to
b8418ec
Compare
b8418ec
to
6c8c97b
Compare
That was quite finicky. A test failure due to checking "can I log at the phase under construction"? Very metaphysical. Also scala/scala3#17682 in case it is picked up for a spree. The other idea is |
Nice! Is it possible to cram doc for the |
While cramming, I also added the default I've longed for. Not sure if I created a ticket for it previously or just tweeted about it endlessly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thanks!
-Vprint:all
, -Vprint:~tailcalls
Because Scala 3 uses "all", it would be easier if Scala 2 regressed to also accepting all in
-Vprint:all
.Often, one wishes to see both incoming and outgoing trees.
It is verbose and cumbersome to determine which phase precedes
tailcalls
, for instance, in order to-Vprint:fields,tailcalls
.The updated syntax is
-Vprint:~tailcalls
.Since settings are not aware of phase order, semantics are the onus of the feature. The syntax is not supported automatically by
-Vshow
, for example.Note that id syntax is
-Vprint:12-13
and tilde is not supported for id. It is trivial to compute the predecessor of phase 13 (unlucky phase!).~all
does not mean before and after every phase, i.e., twice.