[erlang-questions] unicode in string literals

Richard O'Keefe <>
Tue Jul 31 00:57:33 CEST 2012

On 31/07/2012, at 3:17 AM, Richard Carlsson wrote:
> Even leading or trailing spaces are prone to being edited out by mistake. (Erlang supports the \s escape as a synonym for space, for example $\s, but I don't know any other language that has this pretty obvious feature.)

Some Prolog systems do (the tokeniser in my book offered it, IIRC).
One of the people on the Prolog standard mailing list has been jumping
up and down in anger because SWI Prolog has it.  But when you have
characters like 0'x, 0'y, 0' , it's really nice to have 0\s.  (Don't
laugh.  Erlang's $x, $y, $ , is just as bad.)

I actually have a keystroke in my emacs-ish editor to remove trailing
spaces because their presence breaks things more often than it helps.

More information about the erlang-questions mailing list