The em-dash only looks confusing in the monospace font of code editors.  In typical sans-serif fonts, its identity and purpose are quite clear.