Replies: 1 comment
-
|
Are we opposed to rewriting stack traces, interfacing with debuggers, etc.? Here's some quick research based on that:
It would probably mean more maintenance work and it would definitely mean worse overall performance, but it seems like this poll is meant to choose between the lesser of two evils (or at least suboptimals). At the very least, I think rewrites with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When
config.type_checking = falsewe currently prepend a guard method that "untypes" the user's code. So when calling and debugging methods, there is always a guard method to go through. For more info see RedefinerShould we instead rewrite the user's methods in the same class that they were defined? (no prepend). This may improve performance (by much?) and simplify debugging (one less
step) and stack traces (one less line), but it involves rewriting the user's code; evaluating type expressions to get the default value and literally rewriting the method's params. We would likely useeval()to do this so that we can mirror the line numbers of the untyped method with the line numbers of the original typed method.0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions