Content pfp
Content
@
0 reply
0 recast
2 reactions

Paul Berg pfp
Paul Berg
@prberg
Random Solidity tip. Starting V0.8.22, it is no longer necessary to use the ugly "unchecked { ++i; }" syntax in for loops. The compiler will apply unchecked arithmetic by default.
4 replies
6 recasts
53 reactions

nx pfp
nx
@nxs
isn’t it dangerous to apply unchecked arithmetic by default?
1 reply
0 recast
0 reaction

taofeek.eth pfp
taofeek.eth
@taofeek
Be default, yes. But most loops where it's required are certain to not overflow or underflow
1 reply
0 recast
2 reactions