Skip to content

Added subkind Numeric for ad hoc arithmetic operations#1207

Open
hew02 wants to merge 1 commit into
links-lang:masterfrom
hew02:subkind-overload
Open

Added subkind Numeric for ad hoc arithmetic operations#1207
hew02 wants to merge 1 commit into
links-lang:masterfrom
hew02:subkind-overload

Conversation

@hew02

@hew02 hew02 commented Jan 20, 2025

Copy link
Copy Markdown

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
@hew02 hew02 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