Another problem with no spaces is that it is difficult to use editors, word processing software, etc. because the dash and surrounding words are treated as one thing.
This came up in an editing and typesetting discussion one day. I've been convinced ever since that there should be at least a small space around em dashes.