[erlang-questions] Erlang style question - input handling
Christian S
chsu79@REDACTED
Wed Sep 27 18:07:28 CEST 2006
Hi, seems like you are still programming in Erlang like a C programmer.
You want to return error codes. How about just failing if the input
isnt correct?
How complex is the error checking?
Can you use ordinary pattern matching on the values to check that data
is within range?
On 9/27/06, Nohl Attila Rajmund <attila.rajmund.nohl@REDACTED> wrote:
> Hello!
>
> I have a couple of functions which follow this pattern:
> f(X, Y) ->
> % collect some data
> % do something with the collected data
More information about the erlang-questions
mailing list