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

Added subkind Numeric for ad hoc arithmetic operations #1207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yung-turabian
Copy link

@yung-turabian yung-turabian commented Jan 20, 2025

Still wrapping my head around Links' codebase but I felt this way of doing things was not too obtuse. I saw there was an effort to bootstrap lib so if that moves forward I assume that this work would have to be refactored. If there is a better approach I would appreciate the feedback.

+ Reconfigured lib.ml's arithmetic operations to use the numeric subkind as a primitive form of ad hoc polymorphism.
+ Moved `abs()` to `lib.ml` so it can be ad hoc by piggybacking of OCaml's type matching
+ The keyword `effect` is now reserved in OCaml, renamed a case in irCheck
+ Added a fix for the Emacs mode
@yung-turabian yung-turabian changed the title Added subkind Numeric and reconfigured lib.ml's Added subkind Numeric for ad hoc arithmetic operations Feb 23, 2025
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