[erlang-questions] Record validation

Michael Uvarov <>
Sat May 26 07:03:08 CEST 2012


The nice thing about moving validation into a function is that you can have
few functions for different cases. For example,

*valid_manager(#user{}) -> boolean().
valid_user(#user{}) -> boolean().
*

Best regards,
Uvarov Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120526/14b16151/attachment.html>


More information about the erlang-questions mailing list