You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had punted on properly implemented equality, that is now sorted. It
was easier than I thought, but I was getting tripped up on Kotlin's
slightly opaque error messaging around type checking recursion.
Copy file name to clipboardExpand all lines: kotlin/src/mal/env.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ class Env(val outer: Env? = null,
34
34
35
35
// get: takes a symbol key and uses the find method to locate the environment with the key, then returns the matching value. If no key is found up the outer chain, then throws/raises a "not found" error.
36
36
funget(key:MalSymbol): MalType {
37
-
val env = find(key) ?:throwMalCoreEx("The symbol '${key.sym}' not found in env")
37
+
val env = find(key) ?:throwMalUserEx("'${key.sym}' not found")
// The return value from the fn* special form will now become an object/structure with attributes that allow the default invoke case of EVAL to do TCO on mal functions. Those attributes are:
0 commit comments