carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Suggestion: Require language definition version reference in all source files.

Open ATell-SoundTheory opened this issue 3 years ago • 1 comments
trafficstars

In order to facilitate tool assisted migration when defaults or behaviours change, it would be sensible to have a mandatory reference to the language definition version that a source file is assuming.

This could be realised by importing a pseudo-package like import carbon.0.1, which is then detected by the compiler and used for the decision if the file can be processed or needs to be migrated first.

The migration tool would be able to understand the exact expected defaults and behaviour of the source file and increment the referred language definition version after the migration.

ATell-SoundTheory avatar Aug 21 '22 19:08 ATell-SoundTheory

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time. This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Nov 20 '22 02:11 github-actions[bot]