The Repr type name was unclear — it was intended to represent a lambda calculus expression, not a "representation."
This PR renames Repr to Expr throughout the registry package for clarity.
Rename Repr interface to Expr and baseRepr struct to baseExpr.
Rename repr.go to expr.go.
Rename ID() method to Repr() to indicate the representation type.
Rename NewRepr constructor to NewExpr.
Update all usages in codec, conversion, engine, process, and registry files.
Add command aliases conv and eng for convert and engine subcommands.
Benefits
The naming better reflects the domain: an Expr is an expression, and Repr() returns its representation kind.
Command aliases reduce typing for common subcommands.
Checklist
Code follows conventional commit format.
Branch follows naming convention (<type>/<description>). Always use underscores.
Tests pass (if applicable).
Documentation updated (if applicable).
## Description
The `Repr` type name was unclear — it was intended to represent a lambda calculus expression, not a "representation."
This PR renames `Repr` to `Expr` throughout the registry package for clarity.
- Rename `Repr` interface to `Expr` and `baseRepr` struct to `baseExpr`.
- Rename `repr.go` to `expr.go`.
- Rename `ID()` method to `Repr()` to indicate the representation type.
- Rename `NewRepr` constructor to `NewExpr`.
- Update all usages in codec, conversion, engine, process, and registry files.
- Add command aliases `conv` and `eng` for `convert` and `engine` subcommands.
## Benefits
- The naming better reflects the domain: an `Expr` is an expression, and `Repr()` returns its representation kind.
- Command aliases reduce typing for common subcommands.
## Checklist
- [x] Code follows conventional commit format.
- [x] Branch follows naming convention (`<type>/<description>`). Always use underscores.
- [x] Tests pass (if applicable).
- [x] Documentation updated (if applicable).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
The
Reprtype name was unclear — it was intended to represent a lambda calculus expression, not a "representation."This PR renames
ReprtoExprthroughout the registry package for clarity.Reprinterface toExprandbaseReprstruct tobaseExpr.repr.gotoexpr.go.ID()method toRepr()to indicate the representation type.NewReprconstructor toNewExpr.convandengforconvertandenginesubcommands.Benefits
Expris an expression, andRepr()returns its representation kind.Checklist
<type>/<description>). Always use underscores.