miniblog.

← Back to all posts
64
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.
PhotoPhoto

4 Comments

@wilfredh Beautiful. Useful error messages are so hard to get right and so important. Every bit helps.
@wilfredh since the string arg is correct, I wouldn’t underline it in red, rather, I would point after the comma but before the string and say Path goes here
@brk That's a nice idea! I was worried that highlighting a single character would be too subtle, but it looks OK I think. What do you think?
@wilfredh hey that’s pretty nice!