Attention is currently required from: pespin.
1 comment:
File src/s1gw_metrics.erl:
Patch Set #2, Line 85: -type counter() :: [ctr | _].
can you explain this to me? it kind of matches tokens starting with ctr?
Yes, exactly. It's basically the usual `[Head | Tail]` form, letting dialyzer know that the `Head` shall be `ctr` for counters and `gauge` for gauges. Try this in erlang shell:
```erlang
6> [ctr | _] = [ctr, 1, 2, 3].
[ctr,1,2,3]
7> [ctr | _] = [gauge, 1, 2, 3].
** exception error: no match of right hand side value [gauge,1,2,3]
```
To view, visit change 38297. To unsubscribe, or for help writing mail filters, visit settings.