[erlang-questions] Questions on match specifications

Daniel Dormont <>
Sat Nov 12 01:48:39 CET 2011


Regarding 4). This is not abundantly clear on first read in the HTML
version because the header doesn't stand out, but get_tcw is listed
under "Functions allowed only for tracing", not "Functions allowed in
all types of match specifications".

http://www.erlang.org/doc/apps/erts/match_spec.html#id273975

dan

On Thu, Nov 10, 2011 at 9:33 PM, wrp <> wrote:
>
> Match specifications don't appear to be complicated, but the
> documentation on them is sparse. I found the description in Cesarini &
> Thompson to be much clearer than in the ERTS User's Guide, but I still
> have some points of confusion.
>
> For starters:
>
> 1. Quoting seems incosistent. Why is 'and' quoted but andalso is not?
>
> 2. Why is float division (/) not accepted in guards?
>
> 3. In the case of infix operators, does {'op','$1','$2'} always mean
> "$1 op $2" (vs. "$2 op $1")?
>
> 4. The ERTS User's Guide lists get_tcw as an allowed function in ets
> matches. Is that correct?
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list