Skip to content

Change isize to i32 #550

Open
moritz-gross wants to merge 2 commits intodaisy:mainfrom
moritz-gross:replace-isize-with-i32-in-chemistry
Open

Change isize to i32 #550
moritz-gross wants to merge 2 commits intodaisy:mainfrom
moritz-gross:replace-isize-with-i32-in-chemistry

Conversation

@moritz-gross
Copy link
Copy Markdown
Collaborator

@moritz-gross moritz-gross commented Apr 19, 2026

I was looking to learn Rust a bit more and saw that isize is used a lot in chemistry.rs, though I don't see why it shouldn't be a standard integer type like i32.
as I understand it, isize is primarily for pointers, ie platform dependent, which does not make sense for stuff like the likely_chem_superscript scoring function.

side note: I find the RegEx's like MULTIPLE_PLUS_OR_MINUS_OR_DOT very hard to read. What do you think about having some intermediate parts to have it in smaller chunks?

@moritz-gross moritz-gross requested a review from NSoiffer April 19, 2026 01:57
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.

1 participant