[erlang-questions] Style question: accessing record fields in a function clause pattern match?

Fred Hebert mononcqc@REDACTED
Tue Jun 17 16:51:59 CEST 2014


On 06/17, Loïc Hoguin wrote:
> I wish State#state.key were removed from the language entirely.
> 

It kind of makes sense to keep it if you want to allow the use of
#record.field, as in lists:keysearch(Val, #record.field, ListOfRecs). It
does break the abstraction around records in that they're tuples, but
yeah.



More information about the erlang-questions mailing list