In Lebesgue integration, if you change a function on a countable subset of its domain, neither integrability nor the value of the integral changes. The same is obviously not true for differentiation, which is locally defined through a limit.
Now I wonder: Is there a definition of differentiation that also is "immune" against changes on countable subsets?
Well, I guess one could simply define "a function $f$ is X-differentiable in $x$ if there exists a function $g$ that is differentiable in $x$ and agrees with $f$ almost everywhere", but that's sounds like cheating.
So actually my question is: Does there exist a natural definition of derivative with this property? Where "natural" means that the definition makes sense even if you don't know about the property that it should be "immune" against changes on countable sets.