Skip to content

Deprecation registry for MDL aliases (MDL-DEPRnnn), generalising MDL065 #709

Description

@ako

Plan item 1.2 in PROPOSAL_mdl_beta_syntax_freeze.md. Implements ADR-0011, decision 1.

Goal

One registry of deprecated MDL spellings, so every alias left over from consolidation (ADR-0010) warns consistently and can be rewritten mechanically.

Scope

  • Generalise the existing MDL065 pattern. There, the AST records which spelling the source used (mdl/ast/ast_microflow.go:273, validate_microflow.go:1457).
  • A table of entries {code MDL-DEPRnnn, old form, canonical form, rewrite, removed in (language version)}.
  • check and exec warn on a deprecated spelling. A --deprecations=error flag fails instead, for CI over docs and skills.
  • A test fails when a grammar alternative marked as an alias has no registry entry.
  • Seed entries: create or replace (becomes create or modify) and show (becomes list/describe). These are the first two decided consolidations.

Blocks

Week 2 depends on this: fmt --upgrade and all the alias work in Phase 3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions