[erlang-questions] Package Support/Use

Mats Cronqvist <>
Mon Nov 6 12:32:34 CET 2006


Olivier Sambourg wrote:
> Hi,
> 
> You could also use an assertion macro (which was suggested to me a while
> back on this list):
> [some coyote ugly code]
> And use it like this:
> 
> ?match({ok,FD}, open(Name), open_file_error),
> ?match({ok,Data}, read(FD), read_data_error),

   well, you could of course do that.
   an objective problem is of course that to read this code it's not enough to 
know erlang, you must also understand what ?match does.
   a subjective problem is that it is so ugly it makes my toes curl.

     mats



More information about the erlang-questions mailing list