[erlang-questions] Human readable errors in lists module

Joe Armstrong erlang@REDACTED
Fri Feb 13 16:54:09 CET 2009


An idiom I use quite a lot is:

top(Arg1, Arg2) ->
     try
          begin
                  {ok, S} = foo:bar(....),
                  {X, Y} = baz(A, S),



On Thu, Feb 12, 2009 at 6:52 PM, Steve Davis
<steven.charles.davis@REDACTED> wrote:
> If you are coming from java et al. the "let it crash" style is
> actually quite hard to get used to at first. Defensive programming is
> a strong habit and it is a good habit when writing java/cpp etc. But
> with Erlang, the "let it crash" style is absolutely the *right thing
> to do*. You will soon realize that this is a liberating license to
> write the kind of aggressive code that would love to be able to write
> in java/php/c/younameit --- when you get used to it you will enjoy
> programming more and will find your productivity soaring!
>
> /s
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list