[erlang-questions] Defining type with chars.

Max Kuzmins <>
Sat Oct 15 23:58:28 CEST 2016


Hi Marcin,

There's a char() type available, that's defined as  0..16#10ffff. Perhaps
you're not allowed to use $G syntax as it would be unclear what standard
your character refers to.

Regards,
Max

On 15 October 2016 at 21:49, Marcin Miszczyk <> wrote:

> Hi.
>
> Does anyone know why
> -type dna_nucleotide() :: $G | $C | $T | $A.
> is not valid sytax, while
> -type dna_nucleotide() :: 71 | 67 | 84 | 65.
> of course is?
>
> mr
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161015/362e5ece/attachment.html>


More information about the erlang-questions mailing list