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

Richard O'Keefe ok@REDACTED
Thu Oct 23 23:38:08 CEST 2008

On 23 Oct 2008, at 7:45 pm, 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).

The second of them is the definition I actually posted.
The point, after all, was to satisfy the OP's desire
for an interface that was compatible with dirty_read/2.

More information about the erlang-questions mailing list