Philosophical reflections on the golden rule