[erlang-questions] Reassigning variables
Tony Arcieri
tony@REDACTED
Tue Mar 17 23:23:59 CET 2009
On Tue, Mar 17, 2009 at 3:53 PM, Johnny Billquist <bqt@REDACTED> wrote:
> Huh? What's wrong with coding that in Erlang as:
>
> foo() ->
> if
> requested ad size is bad ->
> {skip, bad_size};
> the game has ads disabled ->
> {skip, disabled};
> the game is filtering a domain ->
> {skip, domain_filtered};
> _ ->
> choose_ad()
> end.
>
> Johnny
>
It sounds from his description like the pseudocoded conditions are a bit
more involved than just a guard.
--
Tony Arcieri
medioh.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090317/0a32161c/attachment.htm>
More information about the erlang-questions
mailing list