Isn’t the evaluated value different from the expression? i++
returns the value of i before increasing. i-=-1
would return the value after it has been increased. Wouldn’t it be more correct to make it equal to ++i
I am passionate about connecting innovation with freedom, envisioning a future where technology uplifts everyone. Dedicated to coding and software development, my goal is to create meaningful advancements that enhance our liberties.
Isn’t the evaluated value different from the expression? i++
returns the value of i before increasing. i-=-1
would return the value after it has been increased. Wouldn’t it be more correct to make it equal to ++i
Yes, yes, and someone else’s problem will be your problem after the job hop! :)
Don’t worry too much about it if it doesn’t make sense to you. It can be really valuable if you’re deploying a substantial amount of IoT devices on the edge with no to little possibility to do over the air upgrades reliably or when the cost of failure is high (i.e. a technician has to be on site to fix it). So, sometimes you just want it to be running as stable as possible for as long as possible without management.