shithub: sl

Download patch

ref: 58cbac8c929d52b2af670d14888f08c7c5a5ad1b
parent: 1b181f7502f871daf6e26b89c9974096e5aaee35
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Apr 15 22:29:22 EDT 2025

system: add arg-error and type-error as funcs

--- a/src/system.sl
+++ b/src/system.sl
@@ -840,6 +840,12 @@
 (def (error . args)
   (raise (cons 'error args)))
 
+(def (arg-error . args)
+  (raise (cons 'arg-error args)))
+
+(def (type-error . args)
+  (raise (cons 'type-error args)))
+
 (defmacro (throw tag value)
   `(raise (list 'thrown-value ,tag ,value)))