As a general rule of thumb, if you're able to pay ... do it. You're fairly sure to save by not paying interest; investments may or may not "win" in the end.
However, every rule has an exception. Yes, if you anticipate your employer will pay off loans, loans make sense.
I'll add one more possibility. A friend of mine's son had plenty of ability but wasn't a very serious student, and she wasn't completely sure he would take college seriously. She had him take out loans with this agreement: If he worked hard and graduated on time, she'd pay off all his loans. If he piddled along and required more time than was necessary, or if he dropped out, the loans would be his own responsibility. In the event, he graduated on time and is now working in his chosen field. His mom paid off the loans in one fell swoop.