I've written a simplistic backtrace for runtime errors in my toy programming language.
Underlines feel useful on the top stack frame, but pretty useless on all the other stack frames, which are just calls. Any opinions?
I'm working on arity errors in Garden, my toy programming language.
Rather than just saying "expected 3, got 4 arguments", I'm trying to report where the extra argument is, or what extra argument was expected.
Wilfred Hughes
Shared words: errors, toy, programming, language, just
Score: 94
I really like languages that store their runtime stack on the heap, such as Smalltalk.
You can write code as if you have tail call optimisation, but you still have normal stack traces for debugging.