branching and very basic merging of slots

This commit is contained in:
Joeri Exelmans 2025-04-17 09:19:41 +02:00
parent 614e6c0fdb
commit 3978f7f835
32 changed files with 684 additions and 420 deletions

View file

@ -1,11 +1,7 @@
import { typedFnType } from "./structures/types.js";
import { Type } from "./primitives/types.js";
import { Any, Type } from "./primitives/types.js";
import { makeTypeConstructor } from "./type_constructor.js";
// Everything is (implicitly) typed by the Any type.
const symbolAny = Symbol('Any');
export const Any = makeTypeConstructor(symbolAny)(0);
// A type-link, connecting a value to its Type.
const symbolTyped = Symbol('Typed');
export const Typed = makeTypeConstructor(symbolTyped)(0);