many photographers will tell you that money spent on a good lens will be a better investment than money spent on the camera
this is historically generally true
money spent on “kit” zoom lenses is generally not a good investment as these lenses generally have average build quality, average optics and poor apertures which severely limits their utility in low light and for creating blurred backgrounds
users are generally advised to buy a wider aperture lens of better optical quality
digital cameras in particular now are almost “disposable” with even the high end expensive cameras having a real life of perhaps only 5-7 years, and will depreciate rapidly in value as they will be surpassed by cameras with more features, better sensors and better AF, IS, HD video and connectivity technologies
high quality, mechanical, manual focus lenses will generally last for decades if they are not dropped, scratched or allowed to develop fungus on the optics
modern AF lenses will fail over time as they have rapidly moving parts and electronic components - both have failure rates and when used frequently are likely to fail over their 1st 10 years
additionally the lens features may make it redundant over time - particularly as an investment:
the AF motors in the lenses are continually improved, particularly for the new contrast detect AF cameras which rely on newer technology AF motors
the
image stabiliser technology continues to improve making older lenses less effective
optics tend to be developed over time to provide improved sharpness to better match the higher pixel density in modern sensors - old lenses often do not allow these sensors to shine
those purchasing a system may well consider the benefits of buying a system where the image stabiliser is built into the camera such as Sony NEX E-mount camera system or Micro Four Thirds system, as this not only means EVERY lens gains IS capability without requiring optical IS and its increased failure and redundancy rates, and you potentially gain the benefit of improved IS every time you upgrade the camera to a newer camera which you will have to do anyway with any system.
those who cannot tolerate extended outages from delays in repair, need to consider access to service and turnaround times - this is a major reason why many pros stick with Canon or Nikon as they are more accessible worldwide
finally, demand for particular lenses changes over time