style: rename repr to expr #44
Reference in New Issue
Block a user
Delete Branch "style/repr-to-expr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.