Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Stack Assertions, kind of a hack #2
Ideally assertions would just be there for peace of mind, rather than actually being required in some cases.
This is solvable, but a lot of how types on the stack are tracked needs to be cleaned up and refactored.
10,000 foot view:
Such a flow gives us exactly when (in the stream) a bad op happened, and let's us throw exactly when (in the emitting code) it became provable as such.
But yeah, lots of infrastructure to build and rebuild so this feels like a 1.3 or 2.0 (depending on how far reaching interfaces changes are) feature.