I have been accused of being an eternal optimist. This may be an accurate observation. Recently after returning from a funeral, I found myself commenting that "funerals are great because we get to see family and friends who we haven't seen in years." It all depends upon your perspective...
I do not know if optimism is learned or genetic, but I find it mostly to be a useful trait. I suspect that I am naturally wired for my glass-half-full perspective. I enjoy just about everything in life. Also, I believe optimism to be the foundation for my can-do attitude. I do not let pessimism and naysayers keep me from taking on new challenges and achieving my best. I remember being told that I could not do any number of things. Fortunately, I did not listen and found that I could accomplish most anything that I set my mind to.