Actually I already did that a few weeks ago: https://github.com/oberon-team/scala/commits/migration-update
- The @migration can now be used like @deprecation, old syntax is still supported, but deprecated.
- Xmigration accepts a version string like "2.8" now. This will show only migration warnings since that version. Default is "2.9".
- Improved the wording and the consistency of most migration messages, migration warnings now also show the version the change occurred.
I only have one problem with that solution left:
Paul suggested that I change -Xmigration from BooleanSetting to ChoiceSetting, but although I can set a default value scala/scalac don't accept "-Xmigration" without a value anymore. I would have expected that "-Xmigration" would be accepted and the default value to be chosen if no argument to -Xmigration was given.
Maybe someone can give me a hint on how to make -Xmigration behave that way ...