Add encapsulation, sum types, type constraints and all the required machinery. Also -> threading macro #64

Merged
pkulev merged 40 commits from static-dispatch into main 2026-10-19 17:07:45 +02:00
Showing only changes of commit b5030e3824 - Show all commits

View File

@@ -6,14 +6,8 @@
"one step is just the value: 7")
(return 0)
;;; `->' used to be C's arrow. The arrow is what `.' writes now when
;;; the thing it reads from is a pointer, which left the name free for
;;; threading -- the first module of the standard library.
;;;
;;; What this pins is that a step may be a call, a bare name or a
;;; method, that the value is threaded into the *first* argument, and
;;; that the compiler's own generated arrows survived the rename --
;;; `ops' below lifts a method, which is where the captures live.
;;; A step may be a call, a bare name, a member path or a method, and
;;; the value goes in as its first argument.
(include stdio.h)
(import threading-macros)