I've already looked at Reviewing Low Quality Posts - Answers without explanation, but my question is a bit different - namely, I'm not asking if they should be deleted (I already know they shouldn't, I should vote "Looks OK"), but if and how to comment on them.
So upon encountering such an answer, should I add a comment telling the author that it's not good practice to post code-only answers?
Also, if it's good to comment on them, can you suggest a good boilerplate comment for pasting? Something along the lines of "Don't just post a code dump, are you a mute or something?", but in more polite terms?