-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: enhance readability #968
Conversation
these seem unnecessary to me, personally |
would agree with @gakonst, |
Thanks @IaroslavMazur! Ideally let's try to agree on a change before implementing it, so we can make sure we do not waste your time. Appreciate it!! |
@gakonst we are already chatting and will reopen this for the time being. |
@gakonst, @rakita, thank you for your feedback! As I can understand, the apple of discord here is the The renaming was my attempt at both making the macro name more suggestive for the less experienced That macro is responsible for recording the gas cost of each executed operation, by subtracting the cost from the gas amount remaining for the tx - and panicking if there's not enough gas left. This is, essentially, "charging" the tx signer "gas" as the tx is being executed. Therefore, the proposed name change. Besides, while this macro is not a function, it, too, results in some action (which can be suggestively described with a verb) being executed where the macro is referenced in the codebase. "gas", however, is a noun - and this introduces a logical discrepancy between what the macro does - and how it's named. This discrepancy becomes especially obvious in the context of the While the current names of the macros can undoubtedly be mapped in the minds of the |
397b936
to
38e0277
Compare
38e0277
to
9153866
Compare
After some more talking to @rakita, I've just pushed a patch, removing the changes made to the names of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.