Is it useful for calculation to have a inf in there?

Would it be possible to just use the right derivative?

(I don't remember enough details about splines to guess how to work in these cases.)

Another wild guess (in analogy to some statistics): Would it be useful to have the continuous and the jump parts as two separate elements, if there are kinks and jumps?