[erlang-questions] What is this naming convention?

Christian S chsu79@REDACTED
Fri Oct 27 13:57:03 CEST 2006


Well, I was mostly curious if it encoded some transfer of wisdom among
mnesia hackers. A secret language that say something without using
comments?

I'm just trying to orient myself in the codebase to see if it is
possible to query an index for record's primary keys only. To allow me
to use several such primary key lists and perform set intersections to
implement an SQLish
"... WHERE A = 1 AND B = 2", only looking up the primary keys in the
intersection so less records are involved.

On 10/27/06, Dan Gudmundsson <dgud@REDACTED> wrote:
>
> Whats wrong with it...
>
> For a short time it was a macro..
>
> /Dan
>
> Christian S writes:
>  > val(Var) ->
>  >     case ?catch_val(Var) of
>  >         {'EXIT', _ReASoN_} -> mnesia_lib:other_val(Var, _ReASoN_);
>  >         _VaLuE_ -> _VaLuE_
>  >     end.
>  >
>  > from mnesia/mnesia_lib.erl
>  >
>  > is _BoReD_ProGRAMmeR_ style?
>  > _______________________________________________
>  > erlang-questions mailing list
>  > erlang-questions@REDACTED
>  > http://www.erlang.org/mailman/listinfo/erlang-questions
>
>



More information about the erlang-questions mailing list