Knowing we will someday die gives us a useful frame for a life that will bring us many joys and few regrets.