JPDev@programming.dev to Programmer Humor@programming.dev · 10 months ago===programming.devimagemessage-square76fedilinkarrow-up1694
arrow-up1694image===programming.devJPDev@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square76fedilink
minus-squareSzethFriendOfNimi@lemmy.worldlinkfedilinkarrow-up1·10 months agoTry changing to const === variable. That’s most likely what’s it doing to minimize the risk of accidental assignment.
minus-squarekevincox@lemmy.mllinkfedilinkarrow-up3·10 months agoWut? This is an automated optimizer. It is not worried about accidental assignment.
minus-squareSzethFriendOfNimi@lemmy.worldlinkfedilinkarrow-up1·10 months agoI agree it shouldn’t. But I’ve seen linters that automatically change it since they seem to be forcing practical conventions sometimes.
minus-squarekevincox@lemmy.mllinkfedilinkarrow-up3·10 months agoLinters and minifers are completely different tools.
minus-squareSzethFriendOfNimi@lemmy.worldlinkfedilinkarrow-up3·10 months agoGood point. That’s what I get for shooting from the hip. Thanks!
Try changing to const === variable. That’s most likely what’s it doing to minimize the risk of accidental assignment.
Wut? This is an automated optimizer. It is not worried about accidental assignment.
I agree it shouldn’t. But I’ve seen linters that automatically change it since they seem to be forcing practical conventions sometimes.
Linters and minifers are completely different tools.
Good point. That’s what I get for shooting from the hip.
Thanks!