Proximity switches

Has any one used proximity switches as limit switches and if so what are the problems if any.