branching and very basic merging of slots
This commit is contained in:
parent
614e6c0fdb
commit
3978f7f835
32 changed files with 684 additions and 420 deletions
6
typed.js
6
typed.js
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue