Sum and custom formatting are idempotent. It doesn’t matter whether that gets run once, twice, or a hundred times.
Arbitrary AppScript isn’t guaranteed to be idempotent. You have to run it only once.
Arbitrary AppScript isn’t guaranteed to be idempotent. You have to run it only once.
Can we make a programming language that will save developers from that? Maybe, but that would be very hard and that's not what Apps Script is trying to do. It already allows non-idempotence, trusting developers to write idempotent code when they need to. So it could run on the client just fine.