Skip to content

Conversation

EugeneFlesselle
Copy link
Contributor

No description provided.

EugeneFlesselle and others added 2 commits August 25, 2025 18:20
@sjrd
Copy link
Member

sjrd commented Aug 25, 2025

This is not the usual modus operandi. What is calling for this change? There is nothing more permanent than a temporary solution.

@EugeneFlesselle
Copy link
Contributor Author

This is not the usual modus operandi. What is calling for this change?

What would the modus operandi be (for an experimental feature in a new minor version)?
The intention was to avoid changing the TastyFormat for an experimental feature. The use of annotations is imitating:

if flags.is(Into) then
// Temporary measure until we can change TastyFormat to include an INTO tag
pickleAnnotation(sym, mdef, Annotation(defn.SilentIntoAnnot, util.Spans.NoSpan))

@sjrd
Copy link
Member

sjrd commented Aug 25, 2025

The modus operandi is you just change the TASTy format to what you expect will look like the final version. That's why we have an experimental number in the TASTy version number.

EugeneFlesselle added a commit to dotty-staging/dotty that referenced this pull request Sep 1, 2025
There was a discussion between the alternatives of:
- modifying the tasty format, under the assumption that the tasty in question
  _should_ only be emitted in an experimental tasty version;
- using an annotation to avoid changes to the tasty format.

This PR implements the 1st option, see scala#23810 for the second option.
EugeneFlesselle added a commit to dotty-staging/dotty that referenced this pull request Sep 1, 2025
There was a discussion between the alternatives of:
- modifying the tasty format, under the assumption that the tasty in question
  _should_ only be emitted in an experimental tasty version;
- using an annotation to avoid changes to the tasty format.

This PR implements the 1st option, see scala#23810 for the second option.
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

Successfully merging this pull request may close these issues.

2 participants