|
|
|
|
|
by mtomassoli
5169 days ago
|
|
Just read the docstring of the module. It's very detailed. As for mixing strings with code, I still need to adhere to Python's syntax in order to avoid syntax errors.
Anyway, syntax errors in strings are caught at "rewriting time".
Using words instead of operators would also cause some problems. |
|
I understand why you had to use strings as code. I had two concerns about that. One, you didn't explain it - I had to figure it out on my own. And two, if a solution is supposed to make things cleaner, but ends up introducing warts like that... maybe it's not worth it. What you implemented is interesting, no doubt, but I wouldn't want to use it for that reason.
However, I think you would benefit greatly from having improved examples. Even if people don't use your module, they can still build on your ideas if it's well explained.