Closed yegor256 closed 2 weeks ago
@maxonfjvipon what do you think? Looks like we overuse the ^.
prefix. It can be omitted in many situations (but not all!)
@yegor256 Hey there! 👋 Thanks for your contribution! You've earned +4 points this time. Here's the breakdown: +4 base points, -4 because there were only a few comments (we like to see at least 6!), and +4 to keep you motivated. Remember, more hits-of-code and active code reviews can boost your points next time. Keep the contributions coming! Your current balance stands at -46. Let's see if we can bump that up! 💪
see #3481
removed a bit of redundant
^.
PR-Codex overview
This PR focuses on removing the use of the
^
operator in variouseo
files, which indicates accessing the parent scope. The changes streamline code by directly referencing the properties and methods without the need for the parent context.Detailed summary
while.eo
, removed^
frombody
andcondition
references.tuple.eo
, removed^
fromhead.length
andindex
comparisons.i16.eo
, removed^
from multiple comparisons and arithmetic operations (lt
,lte
,gt
,gte
,times
,plus
,minus
,div
).^
in the error message formatting.