Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Char module #229

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

aspeddro
Copy link
Contributor

@aspeddro aspeddro commented Jun 5, 2024

Perhaps add chrOpt, return option<chr>, @zth, @fhammerschmidt?

TODO:

  • Get rid of PervasivesU
  • Add docstrings
  • Update CHANGELOG.md

Close #228


/* The following is for system use only. Do not call directly. */

external unsafeChr: int => char = "%identity"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to chrUnsafe

@fhammerschmidt
Copy link
Member

Yes, a chrOpt that checks if a given int is in the valid char range and only then returns a Some(char) is missing currently, imo.

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.

Add Char module
2 participants