fix some things

This commit is contained in:
Joeri Exelmans 2025-05-08 21:30:56 +02:00
parent d9111c3969
commit bbac7858ae
16 changed files with 69 additions and 55 deletions

View file

@ -4,7 +4,7 @@ import { DefaultMap } from "../lib/util/defaultmap.js";
import { pretty } from '../lib/util/pretty.js';
import { isFunction } from '../structures/types.js';
import { ModuleStd } from '../lib/stdlib.js';
import { Double, GenericType, Int, SymbolT, Type } from "../primitives/types.js";
import { Double, GenericType, Int, UUID, Type } from "../primitives/types.js";
import { eqType } from '../primitives/type.js';
import { Top } from "../primitives/types.js";
import { assignFn, makeGeneric, onlyOccurring } from '../lib/generics/generics.js';
@ -287,7 +287,7 @@ async function createInstance(t) {
});
return n;
}
else if (eqType(t)(SymbolT)) {
else if (eqType(t)(UUID)) {
console.log("Note: you are creating a new Symbol. Even if the description matches that of another symbol (e.g., \"Int\"), a new Symbol will be created that is unique and only equal to itself.");
const symbolDescr = await input({message: "enter symbol description:"});
return symbolDescr + '__' + genUUID(16);