[erlang-questions] Stateful match specifications

Guilherme Andrade g@REDACTED
Sun Mar 12 16:21:11 CET 2017


Hi list,

I've recently wondered whether it would be useful (and feasible) to have
support for 'stateful match specifications'; i.e., something along the
lines of:

   ets:fun2ms(fun (Head, StateAcc) when Guards -> {Body, NewStateAcc} end,
InitialState)

... as well as a corresponding extension to the raw match specifications
format. These could then be optionally and transparently used in ets,
tracing, etc.

What do you think? Perhaps the 'eeps' mailing list is a more appropriate
place for making this proposal?

-- 
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170312/c80bd772/attachment.htm>


More information about the erlang-questions mailing list