Behind names for types make no sense #260
Labels
cat:lang
Category: Language design
cmp:compiler
Component: Compiler backend (e.g., annotation processors, code generators)
cmp:frontend
Component: Compiler frontend (e.g., CLI, parser, AST)
typ:bug
Type: Bug/defect
Unlike fields, tags, methods, and method parameters, type names don't play any role in transportation. Types have names, and
"_type"
hint field in serialization format, but they're only for human programmers. These"_type"
hints are ignored when a program interprets a serialized value.So the parser should disallow to add a behind name to type declarations.
Currently it even raises an error if two types have the same behind name (but two different facial names) for no reason:
The text was updated successfully, but these errors were encountered: