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") "one step is just the value: 7")
(return 0) (return 0)
;;; `->' used to be C's arrow. The arrow is what `.' writes now when ;;; A step may be a call, a bare name, a member path or a method, and

Why that story is important?
The language is in alpha stage, everything changes from PR to PR, no need to write it down everywhere.

Why that story is important? The language is in alpha stage, everything changes from PR to PR, no need to write it down everywhere.

I agree.

I agree.
;;; the thing it reads from is a pointer, which left the name free for ;;; the value goes in as its first argument.
;;; 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.
(include stdio.h) (include stdio.h)
(import threading-macros) (import threading-macros)