[erlang-questions] Why isn't erlang strongly typed?

attila.rajmund.nohl@REDACTED attila.rajmund.nohl@REDACTED
Thu Oct 23 12:54:34 CEST 2008

On Thu, 23 Oct 2008, Dan Gudmundsson wrote:
> Agree, but I think that was the motivation.
> mnesia:read/1 was the original api function which was kept
> when the 'new'* dirty_read/2 and read/3 was introduced.
> So what do you want?
> mnesia:read({Tab,key}, Lock) ->
>   mnesia:read(Tab,Key,Lock);
> or
> mnesia:read(Tab,Key) ->
>   mnesia:read(Tab,Key,read).
> or both?

This second would be consistent with the dirty_read, so I'd like
this one.
"Beware of bugs in the above code; I have only proved it correct, not
  tried it."

More information about the erlang-questions mailing list