| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
We’ll want something more efficient than this. Maybe generate a function with a switch statement for each value? |
Sorry, something went wrong.
Yes. Read this after writing my response. :-) |
Sorry, something went wrong.
There was a problem hiding this comment.
Very nice, just one request and one suggestion.
Sorry, something went wrong.
| self.out.emit(f" case {instr.name}:") | ||
| self.out.emit(f" return {effect};") | ||
| self.out.emit(" default:") | ||
| self.out.emit(" Py_UNREACHABLE();") |
There was a problem hiding this comment.
If you make this return -1; then you can drop all the cases that return -1, making the function much shorter.
Sorry, something went wrong.
There was a problem hiding this comment.
There won't be any -1's when we finish. We could group all cases with the same value if we want.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah, makes sense. LGTM then.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.