You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codegen: Avoid useless zero subtraction in rest arguments #12188
You may notice that zero subtraction in the args[_i-0] part is useless.
My proposal is to drop it and use just args[_i] in cases when the function signature consists only of spread.
This small change won't affect the generated code behavior, but would make it slightly more readable and compact.
Activity
DanielRosenwasser commentedon Nov 12, 2016
Others may have a different opinion, but I think that we'd be okay with this. 👍