Login function and pattern matching

Joel Reymont joelr1@REDACTED
Thu Aug 25 19:26:19 CEST 2005


Folks,

I'm building a login function for my poker server and this function  
can return different results based on the values of different fields  
in the player record.

I would love to do the login function using pattern matching but  
since custom guards are not allowed am I stuck with a dispatch  
function that verifies my conditions and calls other functions as  
needed?

     Thanks, Joel

--
http://wagerlabs.com/uptick






More information about the erlang-questions mailing list