3 ms·
in the Lisp I'm using I get this: CL-USER 24 > (+ "a" 1) Error: In + of ("a" 1) arguments should be of type NUMBER. 1 (continue) Return a value
by lispm 6y ago
in the Lisp I'm using I get this:
CL-USER 24 > (+ "a" 1)
Error: In + of ("a" 1) arguments should be of type NUMBER.
1 (continue) Return a value to use.
2 Supply a new first argument.
3 (abort) Return to top loop level 0.
Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.
CL-USER 25 : 1 >
There is a clear error message and direct ways to fix/report the problem. Including another REPL to investigate the error.
- timonoko 6y agoCL Loop-macro error reporting is legendary: [1]> (loop until sun dies and moon explodes) *** - LOOP: illegal syntax near DIES in (LOOP UNTIL SUN DIES AND MOON EXPLODES) The following restarts are available: ABORT :R1 Abort main loop
- lispm 6y agoPython is most advanced: >>> [if dark then moon else sun] File "<stdin>", line 1 [if dark then moon else sun] ^ SyntaxError: invalid syntax