Skip to content

use roman_numerals_rs instead of custom table - #870

Closed
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:refactor/use-roman-numeral-create-instead-of-manual-table
Closed

moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:refactor/use-roman-numeral-create-instead-of-manual-table

Conversation

@moritz-gross

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown
Linux library size: 0.58 MiB (+0.00%)
Revision Release liblibmathcat.so
Base (95892ab) 0.58 MiB (611,568 bytes)
PR (0f792e5) 0.58 MiB (611,584 bytes)
Change +16 bytes (+0.00%)

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

@moritz-gross
moritz-gross requested a review from NSoiffer October 20, 2026 00:37
@moritz-gross moritz-gross added the rust Coding in Rust label Oct 20, 2026
@NSoiffer

Copy link
Copy Markdown
Collaborator

I'm not a fan of this change. I don't think it reads any better and it is less efficient because it converts a string to a number and then converts the number back to a string. The original just looks up the string and returns the string.

Also, in chemistry, you never have large roman numerals. "IX" is the largest oxidation state. So the new code is wrong (doesn't return an empty string) for those values.

@NSoiffer NSoiffer closed this Oct 23, 2026
@github-project-automation github-project-automation Bot moved this from Triage to Done in MathCAT Project Board Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Coding in Rust

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants