“What is the meaning of life?” is obviously the most cliché philosophical question you could ask.
To rehash for the umpteenth time what the existentialists said, life has no meaning if you aren’t religious. A lot of people turn to religion in order to imbue meaning into life as part of some bigger plan by God, which Sartre scorned as defeatist.
The next biggest cliché is that if life has no meaning, you have to create your own meaning. Sartre called this l’engagement. Camus took it a step further and suggested that the best sort of engagement is one that derives meaning from creating meaning for others. In other words, being a humanist as a hobby.
The logic seems sound enough, if not a little cruel. The purpose of life is to self-impose a purpose of helping others create a purpose out of something meaningless. It’s kind of a vicious cycle.
Yet perhaps the existentialists and the religious alike were both wrong. Maybe it’s not a dualistic “to be or not to be” type of question. There is and never will be an answer to the question, “What is the meaning of life?” The only answer with which we can content ourselves is that we do not know.
We have to be okay with unanswered questions. Even Hamlet’s question was answered with “the rest is silence.” Life is not a math problem or essay graded by your professor. Ambiguity is uncomfortable, but once we realize that there is no definitive answer, maybe we really can choose the response we want.