Repository navigation
std: remove the snake_case twins of PascalCase functions (phase 2, step 4) - #3541
Conversation
Deletes 600 public functions whose body only forwards to their PascalCase twin (put/Put, with_path/WithPath, and so on). Names the compiler looks up literally (the each-loop and ownership protocols, the intrinsic method table) are kept, as are the snake_case functions that hold the real implementation. Where the deleted twin carried the only Persian name, the @fa line moves to the PascalCase function (24 of them).
The 24 no-fa-name entries for ai/ml methods are covered now that the @fa line of each deleted twin sits on its PascalCase function. Pruned with the tool's own prune mode.
|
Deployment failed for project salam with the following error: |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
An interface that names a method in snake_case (forward, handle_event, focusable, close, next and the like) is satisfied by the snake_case function, and the other spelling is not looked up when a struct is checked against an interface. Putting back every twin whose name an interface declares, in either spelling, fixes the 'does not implement interface' errors in the nn and tui examples.
Regenerated from the tool's list output: nothing new, and the 19 no-fa-name entries whose Persian name moved to the surviving function are gone.
…elete-snake-twins
|
Deployment failed for project salam with the following error: |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sha=dbe65a560f55ba4824e337018548a4a25d4e9ccd
🤖 Salam AI reviewVerdict: commit Maximum steps for this agent have been reached, so no further tool calls or edits can be made. So far, I reviewed the PR metadata and inspected representative parts of the diff and repository, including Remaining tasks:
Recommendation: treat this as a dependent, merge-order-sensitive PR; do not merge it before steps 1-3, and re-run the full validation suite on the combined result.
|
Phase 2, step 4 of 4. Deletes 431 public std functions whose body only forwards to their PascalCase twin (
put/Put,with_path/WithPath, and so on). The compiler looks up some names literally, so those twins stay: the each-loop and ownership protocols, the intrinsic method table, and every name an interface in std declares in either spelling (a struct is checked against an interface by exact name, soforward,handle_event,focusable,close,nextand the like must keep existing). The snake_case functions that hold the real implementation stay too. Where a deleted twin carried the only Persian name, its@faline moves to the PascalCase function (19 cases); the std coverage baseline drops the 19 gaps that closes.Depends on the other three PRs. Merge order: step 1 (seed bump to 0.6.16), step 2 (call sites to PascalCase), step 3 (fallback for the other spelling), then this one, rebased on main after each lands. On its own this branch does not build with 0.6.16 because the remaining snake_case call sites in std are still there until step 2 lands, so its checks stay red until then.
Checked on a local merge of steps 2, 3 and 4 with the released 0.6.16 compiler as the only seed:
check-fa-names,check-namingandcheck-std-coverage-docspass (no new gaps)shadowlayout rule in current main, not this change.Summary by CodeRabbit