I want to do a selective receive where a record property needs to be matched, but whatever syntax I try, I get an "illegal pattern" message.
loop(State) ->
receive
{response, State#s.reference} -> do_something()
end.
Is this not possible?