I don't understand this comment. Using limit seems correct to me.  Its usefulness doesn't seem limited to piecewise functions.