Commit graph

27 commits

Author SHA1 Message Date
55c5d7cffa move function 2025-04-20 21:14:40 +02:00
8a4bd44f04 rename some things 2025-04-20 21:09:51 +02:00
bc9dce4b9c move test to separate file 2025-04-17 16:48:17 +02:00
4d1fb81492 can auto-generate comparison functions for composed types 2025-04-17 16:43:28 +02:00
0b262daf7f add enum type (generalization of sum-type) 2025-04-17 16:10:00 +02:00
8653bb99c6 restructure code a bit, add comparison functions for primitive types and composed types (needed to put values in sets) 2025-04-17 15:11:06 +02:00
3978f7f835 branching and very basic merging of slots 2025-04-17 09:19:41 +02:00
342d4b34ef fix bug in polymorphic types (when creating a tuple of two empty lists, there was only one type variable (the type of the list), whereas each list could have a different type, so there should be two type variables) + make type variables look nicer 2025-04-04 10:04:40 +02:00
4a4983f693 interactive prompt can handle polymorphic types 2025-04-02 15:49:43 +02:00
a0e3aa0cb3 turn the function for creating new types (or type constructors) into a DOPE function 2025-03-31 17:35:30 +02:00
d8ca2f3999 progress and some refactoring 2025-03-31 15:35:02 +02:00
145835ad5d progress 2025-03-24 17:28:07 +01:00
6af72e525c progress 2025-03-24 08:25:53 +01:00
3596e01c28 interactive prompt 2025-03-23 17:46:39 +01:00
bc91d9bf39 lotta progress 2025-03-23 13:25:47 +01:00
29d20b2273 wip 2025-03-23 09:15:37 +01:00
c5ac55b0ff progress with type classes, type inference still very ad-hoc 2025-03-20 18:34:58 +01:00
5283be608b refactor code: move everything from type_registry to "most appropriate" modules 2025-03-20 18:12:30 +01:00
303fa869a8 ... got it wrong 2025-03-20 14:14:28 +01:00
9405ba1b4e add String type + use String to make nominal types unique (worse, but more pleasant when debugging) 2025-03-20 14:09:17 +01:00
18b5e56ff0 add nominal types for 2D points 2025-03-20 12:07:31 +01:00
94efde3e65 add interactive prompt 2025-03-20 09:54:11 +01:00
e892ade34d rename function 2025-03-19 15:43:45 +01:00
3d08485a08 list of byte encoded as JS Uint8Array + demo more readable 2025-03-17 20:14:57 +01:00
574651ccb7 Add product and sum types 2025-03-17 17:54:42 +01:00
6023efc295 use fnType everywhere to create function types 2025-03-14 17:05:04 +01:00
a8260f2afb basic functionality, no generics 2025-03-14 16:56:37 +01:00