(newbie still) compile-time checks?

Christian S <>
Tue Jul 11 09:17:11 CEST 2006


You can have 'catch all' receive patterns and error out if they catch
something.
At least if you dont depend on selective receives.

On 7/8/06, Jon Slenk <> wrote:
> hello,
>
> I'm experimenting with the ping/pong code from the "Getting Started with
> Erlang" tutorial and am wondering what happens if I were to mis-spell an
> atom that is used in message passing. Are there ways to have something like
> an enumerated type of atoms, so that if I use something outside of the
> enumeration the compiler will tell me I made an error? Can Dialyzer or some
> such tool figure out these kinds of possible typographical human errors, or
> is the answer "extensive unit testing"? :-)
>
> many thanks,
> -Jon.
>



More information about the erlang-questions mailing list