Skip to content

Commit

Permalink
Reuse $v-how instead of calling HOW again
Browse files Browse the repository at this point in the history
This won't make much of a difference, but I stumbled upon the repeated
call to HOW. To me reusing the already computed variable $v-how looks
a bit more consistent.
  • Loading branch information
usev6 committed Oct 9, 2022
1 parent b75545d commit 191964c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/World.nqp
Expand Up @@ -2065,8 +2065,8 @@ class Perl6::World is HLL::World {
!$v-how.archetypes($v).coercive
&& (nqp::can($v-how, 'lang-rev-before') ?? $v-how.lang-rev-before($v, 'e') !! self.lang-rev-before('e'))
?? self.maybe-definite-how-base($v)
!! ($v.HOW.archetypes($v).nominalizable
?? $v.HOW.nominalize($v)
!! ($v-how.archetypes($v).nominalizable
?? $v-how.nominalize($v)
!! $v)
}

Expand Down

0 comments on commit 191964c

Please sign in to comment.