Skip to content

#5520: drop redundant same-package +alias metas after auto-homing#5527

Merged
yegor256 merged 1 commit into
objectionary:masterfrom
morphqdd:5520
Jul 15, 2026
Merged

#5520: drop redundant same-package +alias metas after auto-homing#5527
yegor256 merged 1 commit into
objectionary:masterfrom
morphqdd:5520

Conversation

@morphqdd

@morphqdd morphqdd commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Closes #5520.

Since #5425 the compiler auto-homes a bare reference to an object in the same package, so a hand-written +alias <pkg>.<name> whose <pkg> equals the file's own +package is dead weight. This removes all of them.

For every .eo file that has a +package P meta, the +alias P.<name> lines are deleted, and every cross-package alias is left untouched. For example string/at.eo loses +alias string.slice and +alias string.sprintf (both same-package), while tuple/reduced.eo loses +alias tuple.list and +alias tuple.reducedi but keeps +alias string.sprintf. Root-package files like string.eo keep their +alias string.sprintf because their package is not string.

100 aliases removed across 62 files, pure deletion, no other changes:
string 31, tuple 35, io 17, sm 9, fs 8.

Verification: mvn -pl eo-runtime clean install reaches the Java compilation stage, which means register, parse, assemble, lint and transpile all pass with the aliases gone, so every bare reference still resolves via auto-homing (the lint stage would flag any unresolved reference).

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Benchmark Comparison Unavailable

Unfortunately, one of the benchmarks is missing, and we couldn't generate a performance comparison report.

Please ensure that both the base and PR benchmark results are available for analysis.

@morphqdd

Copy link
Copy Markdown
Contributor Author

@yegor256, please take a look when you have a moment. All 25 checks are green.

@yegor256

Copy link
Copy Markdown
Member

@morphqdd conflicts here, please resolve them

@sonarqubecloud

Copy link
Copy Markdown

@yegor256 yegor256 merged commit 3eddd24 into objectionary:master Jul 15, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Redundant same-package +alias metas cluttering eo-runtime .eo files'

2 participants