Conversation

You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
I do this in a bit of a bodgy way with an 'error' variant in my ASTs, but you run into issues where error sentinels pop up in type errors if you aren't careful. Leading to the fun of Rusts 'error: expected `type error` found `type error`' back in the day 😂
1
1
I think most of those bugs have been squished though. But yeah, I'd prefer it if it was a bit more thought out - like something like exceptional type theory perhaps?
1
1
But yeah, I'd like to be able to run my programs even if they have type errors in them - I just accept that if I do they'll crash if they run into ill-typed code fragments. But then on a release build I want to be sure all code paths are well-typed.
2
1
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
If we have postponing in elaboration, deferred errors come almost for free. The "guarded constants" in Agda could support this with minimal effort. Not sure why it hasn't been implemented.
1
2
Oh gotcha! Is there a place you can point me to to see that? Just planning on plopping in a sentinel/poison value to my new elaborator prototype now, so looking for ideas!
1
Show replies