[erlang-bugs] erl rejects FQN that begin with a digit
Wed Oct 20 14:03:39 CEST 2010
That seems like an odd deficiency of the parser, or maybe just an artifact
of the language. I guess there isn't any support for treating as a
single unit since it is trying to convert everything into atoms rather than
leaving it a string. Well, I won't say it is intuitive, but it does work.
On Wed, Oct 20, 2010 at 6:58 AM, Vlad Dumitrescu <> wrote:
> On Wed, Oct 20, 2010 at 13:50, Patrick Baggett
> <> wrote:
> > It seems Erlang doesn't like domain names that start with digits, in my
> > case, the domain "8fun.net"
> > ()5> tut17:start_ping().
> > * 1: syntax error before: 8
> Try enclosing the host name in single quotes, to make it a single atom:
> ()5> tut17:start_ping('').
> Otherwise each part delimited by a dot is scanned as an atom, and
> atoms can't begin with digits.
> best regards,
More information about the erlang-bugs