Skip to content

Simplify the pop loop in pop_stack() - #904

Merged
NSoiffer merged 3 commits into
daisy:mainfrom
moritz-gross:navigate-simplify-pop-stack
Oct 24, 2026
Merged

NSoiffer merged 3 commits into
daisy:mainfrom
moritz-gross:navigate-simplify-pop-stack

Conversation

@moritz-gross

@moritz-gross moritz-gross commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Replace the hand-written countdown loop with for _ in 0..count. It still pops count entries, but without shadowing count or making it mutable. No behavior change.

also it is pretty hard to see what the meaning of count here is, i.e. the count of what?

Replace the hand-written countdown loop with `for _ in 0..count`. It
still pops `count` entries, but without shadowing `count` or making it
mutable. No behavior change.
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Linux library size: 0.59 MiB (0.00%)
Revision Release liblibmathcat.so
Base (31fa5c6) 0.59 MiB (614,800 bytes)
PR (b50c96a) 0.59 MiB (614,800 bytes)
Change 0 bytes (0.00%)

Built with default features, Rust 1.96.0, and Ubuntu 24.04. Workflow run.

Put back debugging statement
Undo cat's contribution...
@NSoiffer
NSoiffer merged commit deb959a into daisy:main Oct 24, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Triage to Done in MathCAT Project Board Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants